Hi @shiva_shankar13,
Check the persmission attribute properties in account schema. If it is multi valued, it will return the List.
If you know the identity and application. you can use the IdentityService to get the link attributes. Please refer the code.
import sailpoint.object.*;
import sailpoint.api.IdentityService;
List permissionList;
Identity id = context.getObject(Identity.class, "Susan.Martin");
if(null != id){
IdentityService is = new IdentityService(context);
Application appName = context.getObject(Application.class, "JDBC");
List Links = is.getLinks(id,appName);
if(null != adLinks){
for (Link linkObj : Links) {
permissionList = linkObj.getAttribute("permission");
return permissionList;
}
}
}
Regards,
Arun
