Tuesday, August 4, 2020

Populating Application form data (in OIM, Prepopulate data in process form)

# In Sailpoint, we can populate data in Application form (Provisioning policy form)  as well as we can populate data in Role form (Provisioning policy form) :

Follow the below steps to achieve  for First Name, Last Name and UserDN :

First Name :

# Login to IIQ
# Navigate to Applications    --->    Application Definition
# Select the Application type : AD or OUD or OID or OVD or LDAP
# Click on Configuration    ---> Provisioning policies    --->    Click on create form
# Open the First Name    --->    Values Settings    --->     select the value as rule (or script)
# click on ... then write the rule in rule editor
# Provide the Rule name as PopulateFormFirstName

    import sailpoint.object.identity;

    return identity.getFirstname();

# Select the rule which you created
# Click on Apply    --->    Save    --->    --->    Save

--------------------------------------*******************---------------------------------------------

Last Name : 

# Login to IIQ
# Navigate to Applications    --->    Application Definition
# Select the Application type : AD or OUD or OID or OVD or LDAP
# Click on Configuration    ---> Provisioning policies    --->    Click on create form
# Open the Last Name    --->    Values Settings    --->     select the value as rule (or script)
# click on ... then write the rule in rule editor
# Provide the Rule name as PopulateFormLastName

    import sailpoint.object.identity;

    return identity.getLastname();

# Select the rule which you created
# Click on Apply    --->    Save    --->    --->    Save

--------------------------------------*******************---------------------------------------------

UserDN :

# Login to IIQ
# Navigate to Applications    --->    Application Definition
# Select the Application type : AD or OUD or OID or OVD or LDAP
# Click on Configuration    ---> Provisioning policies    --->    Click on create form
# Open the UserDN    --->    Values Settings    --->     select the value as rule (or script)
# click on ... then write the rule in rule editor
# Provide the Rule name as PopulateFormUserDN

    import sailpoint.object.identity;
    
    String employeNumber = identity.getAttribute("empID");
    return "userID = " + employeNumber + ", OU=USERS,DC=BPR,DC=COM";

(OR)
    import sailpoint.object.identity;

String displayName = identity.getDisplayName();
return "CN=" + displayName + ", OU=USERS,DC=BPR,DC=COM";



# Select the rule which you created
# Click on Apply    --->    Save    --->    --->    Save

No comments:

Post a Comment

Fetch Members from Workgroup

  import java.util.ArrayList;   import java.util.Iterator;   import java.util.List;   import sailpoint.api.ObjectUtil;   import sailpoint.ob...