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.

Oath credentials issue

Bhadri Veera
Tera Contributor

Hello All,


When i try to authenticate with the client credentials its showing user is not authenticated but credentials are correctly configured.

 

Thanks in Advance. 

1 ACCEPTED SOLUTION

Anand Kumar P
Giga Patron

Hi @Bhadri Veera ,

The OAuth Access token generated when using the client_credentials grant type is linked to the 'guest' user. This association can be confirmed by inspecting the 'oauth_credential' table, specifically the 'Token' and 'User' fields. To enable the OAuth Authorization to function correctly, the token must be connected to a User on the instance rather than the guest user.

Please mark it helpful and solution proposed if it works for you.

Thanks,

Anand

View solution in original post

1 REPLY 1

Anand Kumar P
Giga Patron

Hi @Bhadri Veera ,

The OAuth Access token generated when using the client_credentials grant type is linked to the 'guest' user. This association can be confirmed by inspecting the 'oauth_credential' table, specifically the 'Token' and 'User' fields. To enable the OAuth Authorization to function correctly, the token must be connected to a User on the instance rather than the guest user.

Please mark it helpful and solution proposed if it works for you.

Thanks,

Anand