In this post, we will see how we can get all the Roles of an Identity in SailPoint IIQ.
To get all the roles, There is a method name getRoles() – which is used to get all the roles an Identity have in SailPoint IIQ.
import java.lang.*;
import java.util.*;
import sailpoint.object.*;
Identity iden = (Identity) context.getObjectByName(Identity.class,"Mary.Johnson");
return iden.getBundles();