# SCIM PUT Does not work as expected

**URL:** <https://developer.sailpoint.com/discuss/t/scim-put-does-not-work-as-expected/9741>\
**Category:** IIQ Discussion and Questions\
**Tags:** scim-connector\
**Created:** [March 28, 2023, 12:50am UTC](https://developer.sailpoint.com/discuss/t/scim-put-does-not-work-as-expected/9741 "2023-03-28T00:50:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guduru510](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@guduru510](https://developer.sailpoint.com/discuss/u/guduru510)\
**Post date:** [March 28, 2023, 12:50am UTC](https://developer.sailpoint.com/discuss/t/scim-put-does-not-work-as-expected/9741/1 "2023-03-28T00:50:40Z")

</div>

I have question on update our scim xml file with to make use  
of our PUT /Users instead of PUT /Groups.

1. Add entitlement: When i tried adding entitlement for an user, PUT /users is getting called but the required group is not been send as part of the PUT request.

ex: I am trying to add group\_1 for an account abc, and abc is already part of group\_2 and group\_3. Below is how the put request looks like  
“members”:[  
{  
“value”:“group\_2”,  
},  
{  
“value”:“group\_3”,  
}  
],

I don’t see group\_1 is coming as part of the request.

Can some one help why is it happening like this ? what would be wrong

1. Remove Entitlement: When i tried removing entitlement for an user, instead of PUT /Users getting called it is calling PUT /Groups. I already updated to use GroupsViaUsers as true, not sure why is it calling PUT /Groups instead of PUT /Users. Any thoughts or suggestions on this ?

---

<div class="post-metadata">

**Author:** ![Jarin\_James](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jarin_james/32/3372_2.png) [@Jarin\_James](https://developer.sailpoint.com/discuss/u/Jarin_James)\
**Post date:** [June 27, 2023, 4:33am UTC](https://developer.sailpoint.com/discuss/t/scim-put-does-not-work-as-expected/9741/2 "2023-06-27T04:33:37Z")

</div>

Hi @guduru510

Ad per the [RFC 7644: System for Cross-domain Identity Management: Protocol (rfc-editor.org)](https://www.rfc-editor.org/rfc/rfc7644) , group membership management is handled by group endpoint rather than user endpoint.

```auto
The following example shows how to add a member to a group. Some
   text was removed for readability (indicated by "..."):

   PATCH /Groups/acbf3ae7-8463-...-9b4da3f908ce
   Host: example.com
   Accept: application/scim+json
   Content-Type: application/scim+json
   Authorization: Bearer h480djs93hd8
   If-Match: W/"a330bc54f0671c9"

   { "schemas":
      ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
     "Operations":[
       {
        "op":"add",
        "path":"members",
        "value":[
         {
           "display": "Babs Jensen",
           "$ref":
   "https://example.com/v2/Users/2819c223...413861904646",
           "value": "2819c223-7f76-453a-919d-413861904646"
         }
        ]
       }
     ]
   }

```

---

<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:** [August 26, 2023, 4:33am UTC](https://developer.sailpoint.com/discuss/t/scim-put-does-not-work-as-expected/9741/3 "2023-08-26T04:33:53Z")

</div>

Closed on August 26, 2023, 4:33am UTC

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