e are planning to aggregate only Group-type entitlements from Azure AD. Although we selected Group as the group type in the group aggregation settings, we are still seeing Service Principal-type entitlements.
To resolve this, we added the following logic in the customization rule:e
if (object != null) {
String objectType = object.getObjectType();
if (objectType != null &&
"servicePrincipal".equalsIgnoreCase(objectType)) {
log.debug("Skipping Service Principal during Group aggregation: "
+ object.getStringAttribute("displayName"));
return null;
}
}
then we have seen lazyinitlization exception so could you please let me know how to aggregate the group type entitlements
@sureshbomm Could you please share the complete stack trace of the exception?
BDW if you don’t want ServicePrinciple, you can remove the object from the Schema or add a filter in Group Aggregation task to only aggregate specific types.
Hello Suresh. I would first confirm the Account Group Aggregation task rather than filtering Service Principals in the Customization Rule.
Select only group under Filter object types to scan. SailPoint documents that this controls which object types are included; if nothing is selected, all configured object types and account groups are included. Since you already selected Group, I would run one clean test:
Confirm only the Azure application is selected and Filter object types to scan = group.
If Delta Aggregation is enabled, disable it for this test.
Remove the Service Principal filtering from the Customization Rule temporarily.
Run Account Group Aggregation and check the aggregation log to see whether servicePrincipal objects are actually processed.
I would not judge this from the Entitlement Catalog alone. Existing Service Principal ManagedAttributes there do not prove the current group-only run fetched them.
If no servicePrincipal objects are processed, the task filter is working for this run, and the existing catalog entries can be investigated separately.
If servicePrincipal objects are still processed with the filter set to only group, that does not match the documented object-type filtering behavior. I would capture the IIQ version/patch, task configuration, application schemas, and aggregation logs and take that to SailPoint Support rather than adding another filtering rule.
Older Entra ID configurations can also contain the legacy servicePrincipal group schema. SailPoint now recommends managing Service Principals as accounts, so I would change those schemas only as part of that documented migration, not as a workaround for this issue.