In this post, we will see how we can get the attribute value from an Identity in SailPoint.
The value of the identity attribute can be get by using the getAttribute() method in SailPoint.
getAttribute() method will take the string value as a parameter.
import java.lang.*;
import java.util.*;
import sailpoint.object.*;
Identity iden = (Identity) context.getObjectByName(Identity.class,"Mary.Johnson");
return iden.getAttribute("email");
Here email is the attribute of Identity.