Accounts of an Identity in SailPoint is refered through Links. Whenever account is created in Application, corresponding it is refer as a Link in SailPoint. Here we will see how we can get all the links of an Identity in SailPoint.
getLink is the method to get the links any identity have in SailPoint.
import java.lang.*;
import java.util.*;
import sailpoint.object.*;
Identity iden = (Identity) context.getObjectByName(Identity.class,"Mary.Johnson");
return iden.getLinks();