Creation of a bulk number of roles and the validity of each role

Hello Team,

  1. We’ve got to create a bulk number of roles and access profiles in identityNow, but we are not supposed to use the ruby script given by Sailpoint (Bulk Access Profile and Role-Importer) as there are some restrictions on ruby for our client. Can anyone help? Is there a way to create a large number of roles or access profiles at once using a Python or PowerShell script?

  2. Is there a way to assign a role to a user in IdentityNow only for a certain period? i.e.
    valid from and valid to, etc., by using any API calls etc?
    (valid from is our top priority.)

for example, there is a role : rc1, and user is john doe, we need to assing rc1 role to john doe from feb 25 to may 25 etc.

Thanks in advance!

Thank you & kind regards
Mane

  1. Yes you can use powershell script to call APIs for creating access profiles and roles in bulk.

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

  1. For this use case you can define a flag as Identity attribute which should be true from start date to end date and false otherwise. So now when you define your role include this identity attribute as one of the role criteria and assign the role only when this flag is true.

Thank you @sharvari , Could you please let me know how can we define a flag as identity attribute. do we need to set via nay API call etc.?

Thank you & kind regards
Mane

From UI, in your authoritative source Identity Profile, create a new attribute say assignRole and then map it to a custom transform which will return a yes/no or true/false value which can be used in role criteria.

In the transform logic you need to compare the dates and if current date falls between start and end date you return true else false. For transform you will have to use a combination of dateMath, dateTranform and dateCompare.

Hope this helps!

Thanks a lot @sharvari, I’ve written a transform and mapped it to a custom attribute. But there will be many users whose start date is less than current date and end date is greater than current date. So all the uses will satisfy this criteria their flag will be true right? So those all users will get this role. But we don’t want all users to receive this role. Only while submitting this request for this role we need. Kindly see the attached screenshot.

Thank you & kind regards
Mane

From your initial post that i read, I thought you needed a way to assign birthright roles for these users based on start and end dates. But if you need the role to be assigned only when requested then you would be doing a requestable role and not a birthright role. I believe for requestable roles there is an option to specify end date for access but no start date.

There is an idea posted for the same and requested by many. Perhaps you can cast a vote to bump up the requirement. https://ideas.sailpoint.com/ideas/GOV-I-1034