simpleidserver / SimpleIdServer

OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
https://simpleidserver.com/
Apache License 2.0
683 stars 90 forks source link

[SCIM] remove users by PUT #697

Open danflomin opened 4 months ago

danflomin commented 4 months ago

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

simpleidserver commented 4 months ago

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:

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

Kind regards,

SID

danflomin commented 4 months ago

I will verify this and get back to you.

Thanks!