Error generating SCIM Bearer Token via Curl - "access_denied" / "server_error"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
Hi Community,
I am currently following the guide "SCIM Provisioning from Microsoft Entra ID" to configure user provisioning [1].
I have successfully installed the plugin and configured the OAuth Application Registry [2], [3]. I have also generated the Authorization Code via the browser as described in the guide [4].
However, I am stuck at the step where I need to generate the Bearer Token using the command prompt [5]. When I execute the following command:
`curl -d "grant_type=authorization_code&code=<access code>&client_id=<clientid>&client_secret=<clientsecret>&redirect_uri=https://<instance-name>.service-now.com/login.do" https://<instance-name>.service-now.com/oauth_token.do`
I receive the following error response:
`{"error_description":"access_denied","error":"server_error"}`
I have verified the following points based on the documentation:
* The **Redirect URL** in the Application Registry is set to `https://<instancename>.service-now.com/login.do` [3].
* I am using the `client_id` and the `client_secret` configured in the "SCIM API" record [6].
* I am using the code received after the authorization redirect [4].
Has anyone encountered this specific "server_error" when retrieving the token?
Thanks in advance for your help.
