I have a GET HTTP api with a response where roles are defined as keys inside an array (Example below). Sailpoint identity now is only able to recognize the values as entitlements but not the actual keys (administrator, readonly etc…), please help and share any examples to solve this. Thanks.
Hi Deepika, an After Operation Rule for the endpoint is the best approach in that situation. The rule should convert the Roles into a list of values, possibly like this:
You’re basically running into the classic SailPoint problem of JSON-to-entitlements." The connector doesn’t treat object keys as entitlements by default, only values. So the only way to address this is using an after-operation rule.
In short, you go through each object in Roles, get the .keys() method, and add those as strings of entitlement.
You may even flatten the ones with arrays connected (readonly in your example) such that each instance is a separate entitlement, like readonly-1, readonly-2, etc.
It’s a little bit more code, but it’s completely stable and easy to maintain, and it keeps the connection config simple.
If it is still not solving your problem.. Go to this Guide now..
Thanks everyone for your suggestions, really appreciate it. I took the after operation rule option and modified the json response as below, added all the entitlement keys to a json array like below and updated sail point to look for *.accessArray & accessEntitlement in the HTTP operation, still it says 0 objects scanned….
Also verified the updated json is returned through sail point logs, I am completely clueless now ….