---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Troubleshooting

# REST API scope troubleshooting {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of REST API scope troubleshooting

This guide assists ServiceNow customers in resolving common issues related to REST API scopes, particularly authentication scope checks during runtime.
It focuses on troubleshooting actions and frequently asked questions about OAuth tokens, auth scopes, and their behavior in REST API access control.
Show full answer Show less  

## Troubleshooting Actions

* **No auth scope check during runtime despite linking REST API with auth scope:** Verify that the `sysapiaccesspolicy` record is active, ensure property `com.glide.rest.api.auth.scope.check.enable` is not set to false, and confirm the OAuth token has the useraccount auth scope.
* **Access token with different auth scope accessing REST API:** Check the active status of related records and review if other REST API records with overlapping APIs but different versions, apply methods, or resources exist.
* **No auth scope check for BasicAuth and mutualAuth:** This behavior is expected as auth scopes apply only to OAuth access tokens or OIDC tokens, not BasicAuth, session cookies, or certificate-based authentication.
* **403 error when using OAuth access token:** Look for the "Missing required api access scope" error message indicating auth scope check failure.
* **Pre-defined useraccount deleted:** Restore by exporting and importing useraccount XML from another instance or create a new useraccount and update the system property `glide.oauth.token.scope.useraccount` to the new sysid.

## Frequently Asked Questions

* One OAuth entity can be linked with multiple auth scopes, and all tokens issued have those scopes.
* Different OAuth tokens with different auth scopes can access the same REST API as long as one auth scope matches.
* OAuth tokens with the useraccount auth scope have full access to all auth scopes.
* OAuth token auth scopes are dynamically retrieved from the linked OAuth entity at runtime, allowing scope changes without token reissuance.
* Auth scopes remain consistent after token refresh unless modified by an administrator.
* Creating a new auth scope named "useraccount" after deletion does not work; instead, update the system property `glide.oauth.token.scope.useraccount` to the new record's sysid.
* Modifying auth scopes linked to an OAuth entity affects all existing tokens issued by that entity, as auth scopes are resolved at runtime.
* All tokens from the same OAuth entity share the same auth scopes; individual token scopes cannot differ.
* Different auth scopes cannot be assigned to the same REST API endpoint due to unique constraints, though multiple auth scopes can match the same endpoint.
* Auth scope checks do not apply to BasicAuth or mutualAuth; they are enforced only for OAuth and OIDC tokens.

## Practical Implications for ServiceNow Customers

Understanding and correctly configuring REST API scopes ensures secure and appropriate access control for your APIs. Customers should maintain active and correctly linked `sysapiaccesspolicy` records, manage OAuth entities and tokens carefully, and use system properties to handle special cases like useraccount scope restoration. Recognizing the scope checks apply only to OAuth/OIDC tokens helps prevent confusion when using other authentication methods.  
Troubleshooting actions can help resolve common issues when setting up or running the
REST API scope.
{#rest-api-scope-troubleshooting__table_upj_wjr_4tb__entry__2}

| Issue | Action |
|-|-|
| REST API is linked with auth scope, however in runtime there is no auth scope check even using Bearer token authentication. | * Make sure the sys_api_access_policy record is active. Runtime ignores inactive records. * Check if property com.glide.rest.api.auth.scope.check.enable is set to false. * Check if the OAuth token has `useraccount` auth scope. {#rest-api-scope-troubleshooting__ul_t3h_1kr_4tb} |
| REST API is linked with auth_scope1, however the access token which has auth_scope2 is also able to access it. | * Check if this record is active. * Check for this REST, check if any other records, which have the same APIs but different apply methods, versions, or resource. {#rest-api-scope-troubleshooting__ul_mmz_dkr_4tb} |
| REST API is linked with auth scope, however in runtime there is no auth scope check for basicAuth and mutualAuth. | It is expected since the REST API auth scope only applies to the OAuth access token or OIDC token. It doesn't apply BasicAuth, Session Cookie and Certificate based authentication. |
| REST API call return 403 when using the OAuth access token. | Check for the error message "Missing required api access scope". If found then the auth scope check fails for this REST API |
| Pre-defined `useraccount` is deleted and not sure to restore. | Export `useraccount` as `xml` from the other instance and import it or create an `useraccount` and modify system property glide.oauth.token.scope.useraccount to the newly created sys_id record. |
[Table 1. Troubleshooting]

{#rest-api-scope-troubleshooting__table_upj_wjr_4tb}

## Frequently asked questions {#rest-api-scope-troubleshooting__section_l1h_zkr_4tb}

Following are some of the frequently asked question when using the REST API Auth
scope:

Can one OAuth token be linked with several auth scopes?
:   Yes, one `oauth_entity` can be linked with multiple auth scopes, every
    OAuth token issued by this `oauth_entity` has the same auth scopes.

Can different OAuth tokens with different auth scopes access the same REST API?
:   Yes, for the same REST API, it may be accessed by different auth scopes. As long as one auth scope is matched, the auth scope returns the results.

Can OAuth access token with `useraccount` auth scope access any REST APIs?
:   Yes, the `useraccount` has full access to auth scope.

Can OAuth access token OAuth scope be changed dynamically?
:   Yes, the auth scoped is not hard-coded with the access token in the `oauth_credential` table. Instead auth scope is getting from linked `oauth_entity` during runtime.

Can OAuth token keep same auth scopes after refresh?
:   Yes, auth scope will not change after token refresh, unless `oauth_admin` modify auth scope linked with `oauth_entity`.

Pre-defined `useraccount` auth scope record is deleted, can a new auth scope with name `useraccount` be created?
:   Creating a new auth scope with the same `useraccount` doesn't work. In the runtime, it uses the `sys_id` instead of name to do the auth scope check, modify the system property
    glide.oauth.token.scope.useraccount to the newly created `sys_id` record.

If admin modify auth scoped linked with `oauth_entity`, are all the existing OAuth access token issued by this OAuth entity changed also?
:   Yes, the auth scope is not directly linked with the OAuth access token, it is getting from `oauth_entity` during runtime.

Can different OAuth access tokens issued by the same `oauth_entity` have different auth scopes?
:   No, all access to the token is issued by the same `oauth_entity` and always have the same auth scopes.

Can a user define different auth scopes for a particular endpoint?
:   No, there is a unique constrain check for a particular REST API endpoint. However for the same REST API endpoint, it may have more than one matched auth scopes.

Is the auth scope check used for BasicAuth also?
:   No, auth scope check is only OAuth access token and OIDC token, it is not applied for basicAuth and mutualAuth

