what roles user requires for inbound REST web service?

Ak Islam
Giga Contributor

Hi

I am trying to access ServiceNow by Rest web service. my user has rest_service role and seems like it can't access servicenow and displays following error.

detail>Failed ACL Validation</detail>

          <message>User Not Authorized</message>

Can anyone please help me to identify what other roles the user needs? This user is an AD user from the same domain and ServiceNow user.

thanks

12 REPLIES 12

I feel it's a part of role issue. To confirm provide the ITIL access and do the test. If issue resolves its part of role error. Use below link and tag the role and initiate the testing again.

https://docs.flexera.com/appportal/2020r1/ag/Content/helplibrary/Creating_a_ServiceNow_Integration_U...

Regards,
Suresh.

Hello Sushma, Can you try adding table specific role to that user along with web_service_admin

jaheerhattiwale
Mega Sage
Mega Sage

@Ak Islam You can create a ACL of type "Rest Endpoint" as shown in image below

jaheerhattiwale_0-1671205907535.png

 

Add required role to ACL.

 

Then you can add the ACL to scripted rest api and its resource as shown in image below

jaheerhattiwale_1-1671205970251.png

 

jaheerhattiwale_2-1671206003279.png

 

 

Please mark as correct answer if this solves your issue.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023