Saturday, November 28, 2020

Creation Rule - Set default password and transform attribute values

 Creation Rule is triggered only at the time of Identity creation. We can use this rule to set default passwords for identities or transform any attribute values while creating the identities. Below is the sample Beanshell script:

import sailpoint.object.Identity;
   // All identities using this creation rule will have their passwords set to "Pass2@2@"
identity.setPassword("Pass2@2@");
 //
 // Remove the "." in the fullName for the Identity Name
 //
String fullName = account.getStringAttribute("fullName");
System.out.println("Display Name (before removing .) = " + fullName);
fullName = fullName.replace("."," ");
System.out.println("Display Name (after removing .) = " + fullName);
identity.setDisplayName(fullName);


Comment below if you find this post helpful.


No comments:

Post a Comment

Form AllowedValues rule to filter Identities with Active Regular Active Directory accounts and identity is active and correlated

 The rule type is AllowedValues. import org.apache.log4j.Level ; import org.apache.log4j.Logger ; import sailpoint.object.Filter ; import sa...