cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot access User List via API from IAS

DAcker
Contributor
0 Kudos

Hi experts,

I tried to access the user list from IAS via API in order to change user master data in mass.

I tested it

- via SCIM API (https://help.sap.com/viewer/6d6d63354d1242d185ab4830fc04feb1/Cloud/en-US/ead62fcd8a8c4d97980bcdd102725a14.html) - URL: https://<tenant ID>.accounts.ondemand.com/service/scim/Users/

- and via User Management REST API (https://help.sap.com/viewer/6d6d63354d1242d185ab4830fc04feb1/Cloud/en-US/ead62fcd8a8c4d97980bcdd102725a14.html) - URL: https://<tenant ID>.accounts.ondemand.com/service/users

In both cases, I got the following error in postman:

What am I doing wrong? Does something in regards to SSL need to be configured or is the URL wrong?

Thanks & Regards,

Deborah

DAcker
Contributor
0 Kudos

muralidaran.shanmugham2 can you perhaps help? 🙂

Accepted Solutions (1)

Accepted Solutions (1)

former_member182637
Active Participant

Hi,

If you want to check all users , then API is ".ondemand.com/service/scim/Users/"

However you require authorization by using credentails for user with "Administration" rights in SAP CPIA .

User an user created under User and Administrators > Administrators.

For example your "Commuser", SAP would assign a P user ID and passwords.

This API need authorizations for "manage users" and "manage groups"

0 Kudos

Hi,

I tried the same but its throwing forbidden.

I have given the credentials of the administrator as mentioned. Is there anything else that needs to be done?

Regards

Debojit

Answers (2)

Answers (2)

istvanbokor
Advisor
Advisor

Hi,

To call the methods of this SCIM REST API you must have a system as administrator with an assigned Manage Users role. For more details about how to add a system as administrator and assign administrator roles, see Add System as Administrator, and Edit Administrator Authorizations.

P-users cannot be used for APIs, only technical/system users.

Cheeres,
Istvan

Murali_Shanmu
Active Contributor
0 Kudos

Hi,

I dont think its a problem with the API as I was able to test it.

Check this troubleshooting guide - https://www.getpostman.com/docs/v6/postman/sending_api_requests/troubleshooting_api_requests

Hi,

Execution of the API https://********.ondemand.com/service/scim/Users

- Works with the credentials of "SAP Cockpit" user under Administrator of the IAS.

- Does not work with any other user (P user). Always a http 401 Unauthorized is displayed.

The P user is configured to manage groups and manage users.

Regards.

Debojit

NizareDamoumat
Explorer
0 Kudos

Hello,

I'am facing the same issue. Getting HTTP 401 unautorized ..

Did you find a way to connect with user (P user)?

Regards,

Nizare

former_member736466
Discoverer
0 Kudos

Same issue.