SAP Knowledge Base Article - Public

2979488 - How to get the user list by SAP Analytics Cloud User and Team Provisioning API?

Symptom

How to get the user list by SAP Analytics Cloud (SAC) User and Team Provisioning API?

Environment

  • SAP Analytics Cloud

Resolution

Using SAP Analytics Cloud User and Team Provisioning API, please refer to online document:

Below is a sample which is using Postman to consume this API to create new user for SAC:

1. Open Postman and execute "Post" request with URL like:
    https://oauthasservices-XXXXX.X1.hana.ondemand.com/oauth2/api/v1/token?grant_type=client_credentials

    Here's the list of parameters needed to manually input this request:

   1) Grant_type:client_credentials (generated directly after input above URL)
   2) Authorization tab:

         Basic Auth: create a OAuth client ID and password from SAC, input the ID & secret here. (How to create OAuth client, refer to above API document link)

   3) Headers tab:

         x-sap-sac-custom-auth :true
         Content-type: application/json

     Then get results below and please note down the access_token value:
                         {
                             "access_token": "xxxxxxxxxxxxxxxx",
                             "token_type": "Bearer",
                             "expires_in": 31104000,
                             "scope": ""
                          }

2. Execute "Get" request with the following URL:

https://<tenant URL>/api/v1/scim/Users

    Here's the list of parameters needed to manually  input this request:

   1) Headers tab:

         Authorization : Bearer access_token value ( for example Bearer xxxxxxxxxxx )
         x-sap-sac-custom-auth:true
         x-csrf-token: fetch

    Then find the x-csrf-token from the Headers tab of result, note down the value:
     x-csrf-token  xxxxxxxxx

3. Execute a "Get" request use the URL:
    https://<tenant URL>/api/v1/scim/Users

    Here's the list of parameters needed to input manually for this request:

   1) Headers tab:

         Authorization :Bearer xxxxxxxxxxxx(access_token value)
         x-sap-sac-custom-auth: true
      
    2) Authorization Tab:
       
       TYPE: Bearer Token
       Token value: access token value generated in step 1

    3) Body Tab: None.

     In the body part, it will return the user list.

**************Important***************

Here's a one-stop blog for everything related to SAP Analytics Cloud SCIM API for your reference:

See Also

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, API, 401, 404, 200, 201,api, sdk, list, user,retrieving, get, creation, sample, sac, how to, postman, coding, SAP Analytics Cloud User and Team Provisioning SCIM API Sample Scripts User Guide <tenant URL> , KBA , LOD-ANA-ADM , SAC Administration , LOD-ANA-AUT , SAC Authentication / Login , How To

Product

SAP Analytics Cloud 1.0