Create Bulk Roles in ISC

Hello Community,

Can we create bulk roles in ISC via API/ Postman or any other recommended way? We have requirement to create 100+ Roles in our environment.

you can able to acheive bulk import using any one of the below options

https://community.sailpoint.com/t5/IdentityNow-Forum/SailPoint-IdentityNow-PowerShell-Module/td-p/144188

1 Like

@Shivakarasani455 You can use the SailPoint provided bulk role importer utility to achieve this. All you would have to do is prepare a CSV template as mentioned in this documentation and supply it to the script for execution to import it into your tenant as a one time load. It is much flexible as you can set/update all the flags on the role object using this.

https://community.sailpoint.com/t5/Professional-Services/IdentityNow-Bulk-Access-Profile-and-Role-Importer/ta-p/77382

2 Likes

You can also try the VSCode extension which has an import/export to CSV function.

2 Likes

@Arshad @ethompson Thanks for your response. I’ve been using the Ruby script method to create roles, but I’m running into issues with the roleOwner field. The script keeps returning an error saying it either can’t find the owner or has found multiple matches. I’m not sure what criteria it’s using to identify the owner — I’ve tried several different names without success

Can you please suggest where i am going wrong, attaching screenshot of error and file used for createRole.

Thanks

CSV

@Shivakarasani455 In the roleOwner field, you need to provide the SailPoint Username (uid) value of the identity which is a unique value. That’s what the script accepts.

Hi @Arshad No luck with username as well. I have tried ID, Username, Email, Account Name fields

the naming convention is not so great at places within the system. In identity profile, it shows as SailPoint Username (uid) whereas on the identity cube, the same value is populated under “Account Name” field.

As I can see in your screenshot, try to have account name value 1115003 as the roleOwner value in the CSV feed. I’ve run the bulk role importer script multiple times the same way and never faced any challenges with the roleOwner.

Thanks for the response @Arshad

The script filter is looking for alias attribute, which is not part of our org setup, hence not able to detect any attribute.

I had to take postman runner approach for bulk creation.

thanks