# Multiple Add Entitlement http operation

**URL:** <https://developer.sailpoint.com/discuss/t/multiple-add-entitlement-http-operation/90265>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, access-requests, sailpoint-identity-security, apis, provisioning\
**Created:** [November 19, 2024, 10:04pm UTC](https://developer.sailpoint.com/discuss/t/multiple-add-entitlement-http-operation/90265 "2024-11-19T22:04:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [November 19, 2024, 10:04pm UTC](https://developer.sailpoint.com/discuss/t/multiple-add-entitlement-http-operation/90265/1 "2024-11-19T22:04:12Z")

</div>

Hi All,

We are using a webservice connector and is utilizing two add entitlement operations. One is for adding/modifying a role and the other one is for adding the user to a group.  
I have confirmed that each of those is working on its own. However, when I do an access request to modify a role, the Add Entitlement operation for adding a user to a group was also getting called and displaying an error:

> Message: 405 : {“error”:{“summary”:“Method Not Allowed”,“detail”:“The HTTP method ‘POST’ is not supported for the given resource”,“code”:“405000”}}, HTTP Error Code: 405

Similar thing happens when I do an access request for adding a user to a group. The Add Entitlement for adding/modifying a site role is getting called as is also displaying an error.

How can I configure it in a way that only one of the Add Entitlement operation is getting called (depending if the user needs to add/modify a role or if a user needs to be added to a group) when I perform an access request? I want to configure it this way to prevent the encountering the error for each of the Add Entitlement operation.

---

<div class="post-metadata">

**Author:** ![venus](https://avatars.discourse-cdn.com/v4/letter/v/35a633/32.png) [@venus](https://developer.sailpoint.com/discuss/u/venus)\
**Post date:** [November 19, 2024, 10:11pm UTC](https://developer.sailpoint.com/discuss/t/multiple-add-entitlement-http-operation/90265/2 "2024-11-19T22:11:28Z")

</div>

> [@jasmedina](#):
>
> One is for adding/modifying a role and the other one is for adding the user to a group.

Hi @jasmedina , Two methods are called only when tried to add both role and group. Otherwise, if you just request only role then [Add Entitlement - role] is invoked and vice-versa. Please check your plan as it should only include the requested item or items depends one or multiple is requested.

---

<div class="post-metadata">

**Author:** ![jrossicare](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jrossicare](https://developer.sailpoint.com/discuss/u/jrossicare)\
**Post date:** [November 19, 2024, 10:18pm UTC](https://developer.sailpoint.com/discuss/t/multiple-add-entitlement-http-operation/90265/3 "2024-11-19T22:18:44Z")

</div>

It looks like you havent configured one of the API calls correctly.

Looks like you have it set to POST but maybe it should be PUT?

Double-check what you have in ISC Console versus what you have in Postman (or where ever you have tested the API calls from)

---

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [November 20, 2024, 5:24pm UTC](https://developer.sailpoint.com/discuss/t/multiple-add-entitlement-http-operation/90265/4 "2024-11-20T17:24:44Z")

</div>

Hi Jason,

The configuration for the API call in ISC and Postman is the same. Tried the call in Postman and it was working fine.

---

<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 19, 2025, 5:25pm UTC](https://developer.sailpoint.com/discuss/t/multiple-add-entitlement-http-operation/90265/5 "2025-01-19T17:25:28Z")

</div>

Closed on January 19, 2025, 5:25pm UTC

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