Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
yashkhanna
Explorer
5,084

Section 1 – Setup a system user in IAS:

To be able to setup users in IAS using the SCIM API, we need a system user in IAS for authentication in Postman. Follow below steps to create a system user:

  1. Login to the IAS tenant admin console (https://<tenant ID>.accounts.ondemand.com/admin)
  2. Open the “Administrators” tab in “Users & Authorizations” and click on Add. Create a System user by clicking on “System”.

yashkhanna_23-1717599355483.png

3. Give the Display name:

yashkhanna_24-1717599355484.png

4. In Configure Authorizations, select Manage Users and Manage Groups:

yashkhanna_25-1717599355486.png

5. Click on Save button and next we must set the Secrets for authentication.

yashkhanna_26-1717599355487.png

6. Click on Secrets and then add Secret. Make note of the Client ID and Client secret as this cannot be retrieved from system later. This will be required during authentication in Postman.

yashkhanna_27-1717599355489.png 

yashkhanna_28-1717599355491.png

yashkhanna_29-1717599355496.png

Section 2: Setup Postman:

  1. Ensure you have installed POSTMAN and have logged in. It can be downloaded here: https://www.getpostman.com/.
  2. Pick POST with the following endpoint:

https://<tenantID>.accounts.ondemand.com/service/scim/Users

yashkhanna_30-1717599490639.png

3. Goto Authorizations. Select Basic Auth. In Username enter Client ID and in Password enter Client Secret you have setup earlier for the system user in IAS:

yashkhanna_31-1717599490648.png

4. In Headers change Content-Type = application/scim+json. Keep all the other entries as is:

yashkhanna_32-1717599490654.png

5. In Body, select RAW and JSON and enter the below code and save the settings:

yashkhanna_33-1717599490657.png

{

    "userName": "{{LOGIN_NAME}}",

    "name": {

        "givenName": "{{FIRST_NAME}}",

        "familyName": "{{LAST_NAME}}",

        "honorificPrefix": "{{SALUTATION}}"

    },

    "password": "{{PASSWORD}}",

    "passwordStatus": "enabled",

    "active": true,

    "emails": [{

        "value": "{{EMAIL}}"

    }],

      "groups": [{

        "value": "{{GROUP}}"

    }]

}

Password status = enabled will set password as productive for users. If you want to set password as initial use Password status = initial

6. Define global variables as below:

yashkhanna_34-1717599490659.png

Section 3: Setup Users in mass:

  1. Prepare a list of IAS USER IDs you want to setup in a file with .csv format. Ensure you give header name same as the variable name.

yashkhanna_35-1717599596626.png

2. Execute the Script you saved earlier in Runner and give the number of iterations = number of entries you have in your upload file. Upload the load file in Data section and run the collection:

yashkhanna_36-1717599596628.png

3. In run results you should see return code = 201 Created which confirms run was successful and user was setup.

yashkhanna_37-1717599596629.png

4. User is setup in IAS:

yashkhanna_38-1717599596630.png

 

3 Comments
Labels in this area