Get list of Identities that are provisioned to particular application
Actually the below code gives you the list of Links/accounts provisioned to a particular application, anyway you can find users using link
import sailpoint.object.Identity;
import sailpoint.object.QueryOptions;
import sailpoint.object.Link;
import sailpoint.object.Filter;
QueryOptions qo = new QueryOptions();
qo.add(Filter.eq("application.name", "HR System"));
Iterator accountLinks = context.search(Link.class, qo);
while (accountLinks.hasNext()) {
Link link = (Link)accountLinks.next();
// use link object to find user and add to List
}
Comments
Post a Comment