This example IdentityAttribute rule examines the “userCode” link attribute from the application schema and sets
the isContractor Identity attribute (custom attribute) to true when the userCode is 4300.
Global rule is an expensive rule and should be avoided as much as possible. The reason is , it is executed for every application.
5 Comments
Just a heads up: this appears to be the same video that’s in 2.2
Thank you for pointing out. ll rectify.
Hello @atraudes
Thank you. Correct video is added in this lecture.
Can we get the real time example of Global Rule(Application)?
This example IdentityAttribute rule examines the “userCode” link attribute from the application schema and sets
the isContractor Identity attribute (custom attribute) to true when the userCode is 4300.
Global rule is an expensive rule and should be avoided as much as possible. The reason is , it is executed for every application.
import sailpoint.object.Link;
import sailpoint.object.Attributes;
String isContractor = “false”;
Attributes attrs = link.getAttributes();
if ( attrs != null ) {
int userCode = attrs.getInt(“userCode”);
if ( userCode == 4300 ) {
isContractor = “true”;
}
}
return isContractor;