In this Sailpoint tutorial we will see how to get all links of an identity in an application in SailPoint.
By using getlinks
method of identityservice
, we can get all the links of an identity on any application.
import java.util.Map;
import java.util.HashMap;
import sailpoint.api.SailPointContext;
import sailpoint.object.Identity;
IdentityService idSer=new IdentityService(context);
//Get the identity object
Identity idn=context.getObectByName("12345");
//get the application object from application name.
Application app=context.getObjectByName("ServiceNow");
//identityService.getLinks will return all the links of identity
return idSer.getLinks(idn,app);