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
- SAP Analytics Cloud Community Analytic Applications and APIs Expert page
- SAP Analytics Cloud User and Team Provisioning SCIM API Best Practices and Sample Scripts
- SAP Analytics Cloud User and Team Provisioning SCIM API Sample Scripts User Guide
- 2735652 - Where can I find more information on SAP Analytics Cloud (SAC) Application Programming Interfaces (API) features and documentation?
- 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- Have a question? Ask it here and let our amazing SAP community help! Or reply and share your knowledge!
- 2487011 - What information do I need to provide when opening an case for SAP Analytics Cloud?
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- Search for SAP Analytics Cloud content using Google or Bing:
- https://www.google.ca/search?q=site%3Ahttps%3A%2F%2Fapps.support.sap.com+SAP+Analytics+Cloud
- https://www.bing.com/search?q=site%3Ahttps%3A%2F%2Fapps.support.sap.com+SAP+Analytics+Cloud
- Note: Add relevant text or warning/error messages to the text search field to filter results.
- SAP Analytics Cloud Connection Guide
- Getting Started with SAP Analytics Cloud Expert Community page
- SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support or visit the solution finder today!
Your feedback is important to help us improve our knowledge base.
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