Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

REST Call for non-admin users is failing with 401

Charles Fredie
Tera Contributor

Hi Everyone,

I have an Outbound REST Message with Authentication Type as OAuth 2.0. I am triggering the REST Call using a BR on update of certain fields. Now the REST Call returns 200 Status if a user with Admin role updates the fields.
But when a Non-Admin user updates the fields, the REST Call in BR still triggers but returns a 401 Status Code.
So far I tried adding the below ACLs as mentioned by ServiceNow in the below article but the problem remains still the same:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0783632

OAuth Profile has Grant Type as Resource Owner Password Credentials.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Charles Fredie 

that ACL config should help here.

ensure that API user has access to OAuth Profile as well and then run

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Hi @Ankur Bawiskar 
I didn't have to provide the Oauth profile read access to the Non-Admins, It works now with the two ACLs mentioned in the ServiceNow Article, the ACL configured did not get saved properly.

Thanks for all your help.