How to query all the application accounts from an application in IIQ

Hello All.

Can someone help me with a search query that returns all the application accounts from an application in Identity IQ?

Thanks

What is your objective? You can find all identies with entitlements on an application by searching in the entitlement catalog, and there is a built-in report that lists identies and their entitlements on an application. But it sounds like you want to know all accounts regardless of entitlements. You might have to go directly to the application for that. What is your goal?

Hello  @magesh_narayanan

Below code can get you links of a specific application:

QueryOptions qo = new QueryOptions();

qo.add(Filter.eq("application.name", "{Your Application Name Here}"));

IncrementalObjectIterator iterator = new IncrementalObjectIterator(context, Link.class, qo);

while (iterator.hasNext()) {

 Link link = (Link) iterator.next();

// Write your logic here

 }