# Webservice Connector Identitiy Now - Need to identify keys in JSON response as entitlements

**URL:** <https://developer.sailpoint.com/discuss/t/webservice-connector-identitiy-now-need-to-identify-keys-in-json-response-as-entitlements/186839>\
**Category:** Idea Discussions\
**Tags:** webservice-connector, entitlements\
**Created:** [October 31, 2025, 2:11am UTC](https://developer.sailpoint.com/discuss/t/webservice-connector-identitiy-now-need-to-identify-keys-in-json-response-as-entitlements/186839 "2025-10-31T02:11:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeeDee](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DeeDee](https://developer.sailpoint.com/discuss/u/DeeDee)\
**Post date:** [October 31, 2025, 2:11am UTC](https://developer.sailpoint.com/discuss/t/webservice-connector-identitiy-now-need-to-identify-keys-in-json-response-as-entitlements/186839/1 "2025-10-31T02:11:16Z")

</div>

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.

Objects [

{

“Roles”: {

“administrator”: [.],

“readonly”: [. “1”,”2”],

“insights”: [.] ,

“zoneAdministrator”: [.],

“readOnlyZoneAdministrator”: [.]

```auto
        }

```

}

]

---

<div class="post-metadata">

**Author:** ![paul\_hilchey](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/paul_hilchey/32/24080_2.png) [@paul\_hilchey](https://developer.sailpoint.com/discuss/u/paul_hilchey)\
**Post date:** [October 31, 2025, 5:14am UTC](https://developer.sailpoint.com/discuss/t/webservice-connector-identitiy-now-need-to-identify-keys-in-json-response-as-entitlements/186839/2 "2025-10-31T05:14:52Z")

</div>

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:

“Roles”: [“administrator”, “readonly”, “insights”, “zoneAdministrators”, “readOnlyZoneAdministrator”]

Or this might work better depending on how Roles work in your application:

“Roles”: [“administrator”, “readonly-1”, “readonly-2”, “insights”, “zoneAdministrator”, “readOnlyZoneAdministrator”]

---

<div class="post-metadata">

**Author:** ![kalyan\_dev32](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kalyan_dev32/32/21870_2.png) [@kalyan\_dev32](https://developer.sailpoint.com/discuss/u/kalyan_dev32)\
**Post date:** [October 31, 2025, 5:25am UTC](https://developer.sailpoint.com/discuss/t/webservice-connector-identitiy-now-need-to-identify-keys-in-json-response-as-entitlements/186839/3 "2025-10-31T05:25:06Z")

</div>

hey @DeeDee,

Not sure if the Web Services Connector’s JSONPath parser supports this or not, but it works in the [Json Path Evaluator | SailPoint Developer Community](https://developer.sailpoint.com/tools/json-path-evaluator).  
Give it try below:

```auto
$[*].Roles.keys()

```

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/3/a/3ae0fe882cbf83fe39aac8f8b80b67dfe5cecd63.png)

If it doesn’t work, use an After Operation Rule to manipulate the response and return the keys as entitlements.

> **[Web Services After Operation Rule | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/rules/connector-rules/webservices-after-provisioning-rule)**
>
> This rule calculates attributes after a web-service operation call.

thanks

---

<div class="post-metadata">

**Author:** ![RuthR](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@RuthR](https://developer.sailpoint.com/discuss/u/RuthR)\
**Post date:** [October 31, 2025, 12:40pm UTC](https://developer.sailpoint.com/discuss/t/webservice-connector-identitiy-now-need-to-identify-keys-in-json-response-as-entitlements/186839/4 "2025-10-31T12:40:27Z")

</div>

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](https://documentation.sailpoint.com/) now..

---

<div class="post-metadata">

**Author:** ![DeeDee](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DeeDee](https://developer.sailpoint.com/discuss/u/DeeDee)\
**Post date:** [November 13, 2025, 5:28am UTC](https://developer.sailpoint.com/discuss/t/webservice-connector-identitiy-now-need-to-identify-keys-in-json-response-as-entitlements/186839/5 "2025-11-13T05:28:41Z")

</div>

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 ☹ ….

Updated JSON response -

accessArray=[{accessEntitlement=driveService}, {accessEntitlement=administrator}, {accessEntitlement=readonly}, {accessEntitlement=insights}, {accessEntitlement=zoneAdministrator}, {accessEntitlement=readOnlyZoneAdministrator}]
