# ISC Webservice HTTP operation account created but entitlement not added

**URL:** <https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, provisioning, sailpoint-identity-security\
**Created:** [November 15, 2024, 12:27am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569 "2024-11-15T00:27:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![erie-erie](https://avatars.discourse-cdn.com/v4/letter/e/eada6e/32.png) [@erie-erie](https://developer.sailpoint.com/discuss/u/erie-erie)\
**Post date:** [November 15, 2024, 12:27am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/1 "2024-11-15T00:27:37Z")

</div>

Source account is created when entitlement is requested for web service and the problem is entitlement is not added.

I have configured below HTTP operation:  
Account aggregation  
Create account  
Add Entitlement

Also enabled “Create Account With “Ent” Request”

The source API limitation is it cannot add entitlement when calling user API. To add/update entitlement separate call to entitlement API has to be made.

Business expectation is user should be created with entitlement populated when access request is approved.

Any suggestions?

Thanks

---

<div class="post-metadata">

**Author:** ![Santhakumar](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/santhakumar/32/17329_2.png) [@Santhakumar](https://developer.sailpoint.com/discuss/u/Santhakumar)\
**Post date:** [November 15, 2024, 5:36am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/2 "2024-11-15T05:36:13Z")

</div>

@erie-erie You need to do the entitlement relationship with the account, can you check the below link it may used for your case.

> [@Reverse entitlement aggregation for Web Services connector](https://developer.sailpoint.com/discuss/t/reverse-entitlement-aggregation-for-web-services-connector/14198):
>
> Description This is a WebServicesAfterOperation rule that allows you to establish account to entitlement relationships when the target API does not provide endpoints to fetch account to entitlement relationships. Instead, the API provides entitlement to account relationships, which is something our current architecture struggles with. This is a similar challenge to that we face with LDAP servers, which hold group membership at the group object and not the account object. This is solved by specia…

---

<div class="post-metadata">

**Author:** ![zeel\_sinojia](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zeel_sinojia/32/13666_2.png) [@zeel\_sinojia](https://developer.sailpoint.com/discuss/u/zeel_sinojia)\
**Post date:** [November 15, 2024, 7:20am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/3 "2024-11-15T07:20:47Z")

</div>

Hey,

You have enabled `Create Account With “Ent” Request` option, even if Source API cannot add entitlement along with User?

Whenever a request is made for new user, and `Create Account With “Ent” Request` is not selected then following operations would trigger:

1. Account Aggregation
2. Add Entitlement

When you select the option, it would only run the Create Account operation and skip the Add Entitlement.

---

<div class="post-metadata">

**Author:** ![erie-erie](https://avatars.discourse-cdn.com/v4/letter/e/eada6e/32.png) [@erie-erie](https://developer.sailpoint.com/discuss/u/erie-erie)\
**Post date:** [November 19, 2024, 12:05am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/4 "2024-11-19T00:05:39Z")

</div>

How can I create account and add entitlement?

---

<div class="post-metadata">

**Author:** ![vguleria](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vguleria/32/7884_2.png) [@vguleria](https://developer.sailpoint.com/discuss/u/vguleria)\
**Post date:** [November 19, 2024, 5:18am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/5 "2024-11-19T05:18:10Z")

</div>

Hi @erie-erie

It is normal scenario where create account and add entitlement could have different endpoint. Looking at the description you have provided in the query it seems to me that add entitlement operation is having some issues.

If possible could you share the request body and contextURL (ofcourse please hide the domain or sensitive information) so that I can check and suggest further.

Another tip will be that you can just hardcode the endpoint once and body as well and then try to make the request and see what happens. If it works then it is obvious that there is some issue either in contextURL or body generated with provisioning plan.

I hope this works, please keep me posted.

Regards  
Vikas

---

<div class="post-metadata">

**Author:** ![zeel\_sinojia](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zeel_sinojia/32/13666_2.png) [@zeel\_sinojia](https://developer.sailpoint.com/discuss/u/zeel_sinojia)\
**Post date:** [November 19, 2024, 5:22am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/6 "2024-11-19T05:22:16Z")

</div>

Hey,

If `Create Account With “Ent” Request` flag is enabled, it should handle the `Create Account` along with `Add Entitlement`.

For example,

1. `Create Account With “Ent” Request` is Enabled.  
1.1. `Create User` operation is triggered.  
1.2. SailPoint assumes that entitlements that need to be provisioned are included in the `Create User` operation.  
1.3. Because of point (1.2), it will skip the `Add Entitlement` operation.  
1.4 Total one operation was called i.e., `Create Account`

2. `Create Account With “Ent” Request` is Disabled.  
2.1. `Create User` operation is triggered.  
2.2. SailPoint will trigger the second operation to update the entitlement as well.  
2.3. Because of point (2.2), it will call the `Add Entitlement` operation.  
2.4 Total two operations are called i.e., `Create Account` & `Add Entitlement` in that order.

---

<div class="post-metadata">

**Author:** ![RAKGDS](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/rakgds/32/2795_2.png) [@RAKGDS](https://developer.sailpoint.com/discuss/u/RAKGDS)\
**Post date:** [November 19, 2024, 6:15am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/7 "2024-11-19T06:15:07Z")

</div>

Hi Erie,  
For your webservice to work do the following.

1. Disable the Create Account With Ent Request
2. Configure Create Account and in response mapping take the id which will return from the response.
3. In the Add Entitlement make sure you are passing that value from the response of the Create Account so that IdentityNow identifies that user created and response.

Let us know if you are still facing the issue.

Thanks  
Rakesh Bhati

---

<div class="post-metadata">

**Author:** ![erie-erie](https://avatars.discourse-cdn.com/v4/letter/e/eada6e/32.png) [@erie-erie](https://developer.sailpoint.com/discuss/u/erie-erie)\
**Post date:** [November 19, 2024, 5:37pm UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/8 "2024-11-19T17:37:47Z")

</div>

Hi, I appreciate you help. Here is my setup below

**Create Account:**

```auto
Context URL POST : /scim/v2/users
Header -> Accept: application/json
          Content-type: application/json
Request Body:
*{*
* "schemas": [*
* "urn:ietf:params:scim:schemas:core:2.0:User"*
* ],*
*"userName": "$plan.userName$",*
* "name": {*
* "givenName": "$plan.givenName$",*
* "familyName": "$plan.familyName$"*
* },*
* "emails": [*
* {*
* "value": "$plan.email$"*
* }*
* ]*
*}*

Root Path is empty
Response Mapping: Schema Attribute: id ----> Attribute Path: id

==================================================
POST method API Response:
*{*
* "schemas": [*
* "urn:ietf:params:scim:schemas:core:2.0:User"*
* ],*
* "id": "1111111111-2222222-33333",*
* "externalId": "ewtqtkllrek",*
* "meta": {*
* "created": "2020-01-27T13:29:58.303-05:00",*
* "location": "https://api.abc.com/scim/v2/users/1111111111-2222222-33333"*
* },*
* "userName": "jhhjkhk5ewrt@abc.com",*
* "name": {*
* "givenName": "aAdMn5",*
* "familyName": "CZTIv3"*
* },*
* "displayName": "aAdMn5 CZTIv3",*
* "active": true,*
* "emails": [*
* {*
* "value": "jhhjkhk5ewrt@abc.com",*
* "primary": true*
* }*
* ],*
* "groups": []*
*}*

```

**Add Entitlement:**

```auto
Context URL PATCH Method: /scim/v2/groups/$plan.roles$
Header -> Accept: application/json
          Content-type: application/json
Request Body: 
*{*
* "schemas": [*
* "urn:ietf:params:scim:api:messages:2.0:PatchOp"*
* ],*
* "Operations": [*
* {*
* "op": "Add",*
* "path": "members",*
* "value": [*
* {*
* "value": "$plan.nativeIdentity$"*
* }*
* ]*
* }*
* ]*
*}*

```

---

<div class="post-metadata">

**Author:** ![erie-erie](https://avatars.discourse-cdn.com/v4/letter/e/eada6e/32.png) [@erie-erie](https://developer.sailpoint.com/discuss/u/erie-erie)\
**Post date:** [November 19, 2024, 5:39pm UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/9 "2024-11-19T17:39:34Z")

</div>

Do I have to define any root path? In my previous reply, I have included my setup and API response

---

<div class="post-metadata">

**Author:** ![vguleria](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vguleria/32/7884_2.png) [@vguleria](https://developer.sailpoint.com/discuss/u/vguleria)\
**Post date:** [November 20, 2024, 7:58am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/10 "2024-11-20T07:58:06Z")

</div>

Hi @erie-erie

Fortunately, I have done the same integration in the past. So here is what you need to do

1. please configure the root path and response mapping for create account operation. This will help then ISC to store the information about the account created.

2. for the add entitlement the main thing is that you should set the attribute for entitlement correctly in context url. For which you can open an entitlement and see the value of **attribute** field and make sure that it is roles. If it is group or something else then you should use that like $plan.groups$ in context url. In my case, the attribute name for entitlement is groups.

Please make these adjustments and then it shall work hopefully.

Let us know the outcome.

Thank You  
Regards  
Vikas.

---

<div class="post-metadata">

**Author:** ![erie-erie](https://avatars.discourse-cdn.com/v4/letter/e/eada6e/32.png) [@erie-erie](https://developer.sailpoint.com/discuss/u/erie-erie)\
**Post date:** [November 21, 2024, 3:44am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/11 "2024-11-21T03:44:51Z")

</div>

I configured as you said and in middle of testing this, I started getting another issue which I posted in new thread.

> [@Add Entitlement Operation not being triggered by Request Center](https://developer.sailpoint.com/discuss/t/add-entitlement-operation-not-being-triggered-by-request-center/90390):
>
> The “Add Entitlement” operation is not being triggered by the request center. To troubleshoot, I assigned static values to the role ID in the context URL and a static user ID in the body, but the entitlement was still not added. However, when I used the same URL & body with static values in the “Test Connection” operation, it successfully added the entitlement. Request Center shows that the Request completed with Error Account Event shows Request Access Started and nothing else:

---

<div class="post-metadata">

**Author:** ![vguleria](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vguleria/32/7884_2.png) [@vguleria](https://developer.sailpoint.com/discuss/u/vguleria)\
**Post date:** [November 21, 2024, 8:05am UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/12 "2024-11-21T08:05:14Z")

</div>

Hi @erie-erie

Great to know that we have mode a progress. Let me have a look at the other thread and see if i can suggest something.

Regards  
Vikas.

---

<div class="post-metadata">

**Author:** ![erie-erie](https://avatars.discourse-cdn.com/v4/letter/e/eada6e/32.png) [@erie-erie](https://developer.sailpoint.com/discuss/u/erie-erie)\
**Post date:** [November 25, 2024, 3:14pm UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/13 "2024-11-25T15:14:10Z")

</div>

Adding Get Object is the solution after create operation and then add entitlement operation

In get object operation:  
/scim/v2/users/$getObject.nativeIdentity$

In Response mapping:  
id ----\>$.id

For add entitlement:  
id—\> $plan.nativeIdentity$

For us, id is the nativeIdentity (for newly created user, id is retrieved from getObject operation)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [January 24, 2025, 3:15pm UTC](https://developer.sailpoint.com/discuss/t/isc-webservice-http-operation-account-created-but-entitlement-not-added/89569/14 "2025-01-24T15:15:04Z")

</div>

Closed on January 24, 2025, 3:15pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
