ServiceNow OAuth: Scopes?

jeff00seattle
Kilo Guru

Hello

 

I am unable to find what scopes are available to restrict access defined by ServiceNow OAuth WebApp.

For a specific pair of client-id and client-secret.

 

Please provide a reference of what available scopes and their restrictions.

 

Thank you

1 ACCEPTED SOLUTION

Abhay Kumar1
Giga Sage

@jeff00seattle in OAuth2.0 no need to define any scope seperately, there are ACL on auth credential table which allow same user to read the token who has generated.

 

If you look user field in oauth credential table, same user can read token otherwise will show null for any other API user.

 

Hope this will help you.

View solution in original post

4 REPLIES 4

SwarnadeepNandy
Mega Sage

Hello @jeff00seattle,

 

According to the ServiceNow documentation, when you select ServiceNow as an OAuth provider, the default and only scope available is useraccount. This scope grants access to the user’s account information and preferences. You cannot configure custom scopes or restrict access to specific resources or endpoints.

If you want to use different scopes or grant types, you may need to use an external OAuth provider, such as Google or Facebook, and register your ServiceNow instance as an OAuth client. You can find more information on how to set up your ServiceNow instance as an OAuth client using the.... You can also learn how to manage OAuth tokens stored in ServiceNow.

 

I hope this helps you understand the scope limitations of ServiceNow OAuth WebApp

 

Kind Regards,

Swarnadeep Nandy

jeff00seattle
Kilo Guru
  1. What is "useraccount" scope?
  2. For Table API, are there scope assignments per table?

SwarnadeepNandy
Mega Sage

My apologies. It seems from Tokyo onwards; you can configure your own auth scopes.

https://docs.servicenow.com/bundle/utah-platform-security/page/administer/security/concept/rest-api-...

Abhay Kumar1
Giga Sage

@jeff00seattle in OAuth2.0 no need to define any scope seperately, there are ACL on auth credential table which allow same user to read the token who has generated.

 

If you look user field in oauth credential table, same user can read token otherwise will show null for any other API user.

 

Hope this will help you.