Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
IDCS REST API call unauthorized — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

IDCS REST API call unauthorized

Received Response
edited Jun 10, 2020 9:14PM in Identity 2 comments


Getting unauthorized error from REST API call


I'm trying to get started with the IDCS REST API. I created a confidential app, granted Identity Domain Adminstrator, recorded the Client ID and Client Secret. I ran a curl command to get an access token.

curl -i \
-H "Authorization: Basic <base64-encoded Client ID:Secret>" \
-H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \
--request POST https://<idcsUrl>/oauth2/v1/token \
-d "grant_type=client_credentials&scope=urn:opc:idm:__myscopes__" 

I used the access token in another curl command calling a REST API command to get users.

curl \
-X GET \
-H "Content-Type:application/scim+json" \


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!