SimpleIdServer icon indicating copy to clipboard operation
SimpleIdServer copied to clipboard

[SCIM] remove users by PUT

Open danflomin opened this issue 2 years ago • 2 comments

Hi

I have a group with 2 members, in it, then I had a PUT request to remove one user, and I received the following error

attribute members is immutable

Is this an expected behavior?

The PUT request to keep just 1 user is the following:

{
  "members": [
    {
      "value": "09829117-292e-4169-8e97-0b637d5edcd6",
      "display": "Another1"
    }
  ],
  "id": "611e64cc-95db-4d7a-844e-8b54dc794245",
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:Group"
  ],
  "displayName": "Some Group",
  "externalId": "some-group-id"
}

Kind regards Dan

danflomin avatar Feb 12 '24 12:02 danflomin

Hello,

This error message is returned when at least one immutable property is modified or not present in the HTTP request. Could you please check if all the properties present in the first member are the same? The immutable properties to verify are:

  • members.value
  • members.type

Additionally, the property 'members.display' is not defined in the 'GroupSchema.json', and can cause the issue.

Kind regards,

SID

simpleidserver avatar Feb 12 '24 16:02 simpleidserver

I will verify this and get back to you.

Thanks!

danflomin avatar Feb 18 '24 14:02 danflomin