"External user not authorized" for Inbound web service

Geoffrey GEMAIN
Tera Contributor

Hello,

 

I created an inbound web service to create case.

The user used by the import set API has the role sn_customerservice.customer.

This user is also used by standard api to retrieve the cases he created.

 

I have associated this role to the user to keep the standard CSM restrictions.

When I execute my API request, I get the error "External User Not Authorized".

I found articles about scripted rest api where it is possible to specify that the snc_internal role is not required, but nothing about standard APIs like the Import Set API.

 

Have you ever encountered this problem?
Do you have any ideas how to solve it?

 

Thank you

7 REPLIES 7

SystemsGo
Tera Contributor

Hi Timi,

 

I don't think there's any check box with name "Requires SNC Internal". Is there any screen shot for for this check box?

Hi @SystemsGo 

It's under the Scripted REST Resource [sys_ws_operation] table, not located on the form, and default value is True.

URL: https://<instance_name>.service-now.com/sys_dictionary.do?sys_id=566d27f0e703030084ad47e603f6a97f

Timi_0-1726728611686.png

 

Cheers,

Tai Vu

SystemsGo
Tera Contributor

When I changed Requires SNC Internal to false, the user with snc_external role can execute that Scripted REST API.

 

Thank you.