Filter to get MangedAttributes with Inactive identities

Hi all,

Can someone help me with the correct filter to get Entitlements with Owners who are Inactive.

Thanks in advance

Hi @rishavghoshacc

Here is a step. Intelligence → Advanced Analytics → Search type: Entitlement → click on view/edit filter source → Enter the filter value as below

owner.inactive == true

Screenshots are:

@rishavghoshacc you can use like this
Filter identityFilter = Filter.eq(“inactive”, true);
Filter f = Filter.subquery(“owner”,Identity.class, “id”,identityFilter);

QueryOptions qo = new QueryOptions();
qo.add(f);
Iterator it = context.search(ManagedAttribute.class, qo);