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.

Client Credential Grant OAuth missing Grant Type Options

pedrams
Tera Expert

According to this article: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1645212 

 

"

However, starting from the Washington release, ServiceNow has introduced an option to support the "Client Credentials" grant type by linking it to a user in the OAuth Entity record.

"

 

Screenshot 2025-01-09 at 12.55.00 PM.png

 

I am on the latest version and patch, on Xanadu but I do not see that option when setting up an OAuth application: 

 

Screenshot 2025-01-09 at 12.56.07 PM.png

 

What am I doing wrong? Why is this option missing? 

1 REPLY 1

MuzH
Giga Contributor

I had to implement this in our instance. This is what I did to get it to work 

  1. Create the glide.oauth.inbound.client.credential.grant_type.enabled system property. 
    1. https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1645212
  2. Add the "OAuth Application User" and "Default Grant Type" fields using Form builder 
    1. MuzH_0-1747841981453.pngMuzH_1-1747842001484.png

       

       

  3. Set Default Grant type to "Client Credentials"
  4. Set the Oauth Application User to user with correct Roles/Scopes to run desired API calls
    MuzH_2-1747842079442.png