Hello everyone !
I’m currently working on the aggregation of a fictive entitlement for a WebServices connector (JAM) in order to proceed to the provisioning of my source.
I managed to create the entitlement “jamAccess” thanks to the following After Operation Rule :
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
try {
Map m = new HashMap();
m.put("groupid", "jamAccess");
if (processedResponseObject == null) {
processedResponseObject = new ArrayList();
}
processedResponseObject.add(m);
Map updatedMapInfo = new HashMap();
updatedMapInfo.put("data", processedResponseObject);
// Return the updated map
return updatedMapInfo;
} catch (Exception ex) {
log.error("An issue occurred");
}
Following the aggregation process on IdentityNow, the entitlement appears correctly when clicking on the source. However, there is little to nothing I can do with it. There’s no way to add the entitlement to my Access Profile, being met with an error which tells me to contact my administrator.
To make a few more tests, I set the entitlement as requestable and tried granting it to one of my identities. Yet, when checking the identity’s activity, I have an error which goes as follows, “NullPointerException” :
I strongly believe that there is an issue with my rule, probably something missing. What do you think ?
Thanks in advance !