QueryOptions qo = new QueryOptions();
qo.addFilter(Filter.ignoreCase(Filter.eq("iiqElevatedAccess", true)));
qo.addFilter(Filter.ignoreCase(Filter.eq("identity.name", "abcd")));
qo.addFilter(Filter.eq("aggregationState", "Connected"));
int count = context.countObjects(IdentityEntitlement.class, qo);
return count;
when trying to set iiqElevatedAccess to true, i am getting below error message
Exception running rule: The application script threw an exception: sailpoint.tools.GeneralException: could not resolve property: iiqElevatedAccess of: sailpoint.object.IdentityEntitlement BSF info: testpolicy at line: 0 column: columnNo
iiqElevatedAccess is for ManagedAttribute, not for IdentityEntitlement. Hence you are getting error of ‘Could not resolve property on iiqElevatedAccess’.
If your requirement is to fetch elevated access assigned to all identities, then this is the way. You can do same thing in one more way too, where you need first fetch the all elevated ManagedAttributes, then iterate members of it.