Targeted certification - CertificationScheduleEntitySelector Rule advise

Hi All,

“We have implemented a ‘CertificationScheduleEntitySelector’ rule to include specific identities in our certification process. However, we’re encountering an issue in the ‘What do you want to certify?’ section. We added role names that start with the application name, but this approach fails when role names don’t begin with the application name. Could you please advise on how we can resolve this to ensure all relevant roles are included in the certification, regardless of their naming convention?”

Note : “In the ‘What do you want to certify?’ section of our IIQ certification process, we need to identify the application name regardless of the role naming convention. How can we modify our approach to ensure we capture the correct application name for all roles, even when the role names don’t start with the application name?”

Below is the piece of code for your reference.

if (definition == null) {
return identityNames; // Return empty list if definition is not found
}

// Extract attributes and roleFilterValues
Map attributes = definition.getAttributes();
List roleFilterValues = (List) attributes.get(“roleFilterValues”);
if (roleFilterValues != null) {
for (Map map : roleFilterValues) {
if (“name”.equals(map.get(“property”))) {
sourceApplicationName = map.get(“value”);
break;
}
}
}
log.debug(“sourceApplicationName :”+sourceApplicationName);