
User1629454569194773518 (Customer) asked a question.
We have a SCIM integration setup for provisioning users and groups from OKTA.
Scenario:
- User ‘user1’ is a member of group ‘group1’
- ‘user1’ isn’t member of any other groups
- I have provisioned the group ‘group1’ through SCIM.
- If I remove the user ‘user1’ from group ‘group1’, okta sends a PATCH call to /Users endpoint to make the user ‘user1’ as inactive
- But Okta does not send a PATCH call to /Groups endpoint to update the membership details.
To give more context about why this might be an issue.
If I go one more step and
- ‘group2’ is added to scim app.
- Add ‘user1’ to another group ‘group2’
- Okta sends call to make user ‘user1’ active [/Users endpoint]
- Okta sends call to add ‘user1’ to ‘group2’ [/Groups endpoint]
- Okta sees that the scim server has both ‘group1’ and ‘group2’ listed as groups for ‘user1’
- Okta sends a call to update ‘user1’ groups using PUT call to /Users endpoint
- The 6th step is a violation of SCIM rfc - change to groups attribute should be done only via /Groups endpoint. So SCIM server discards groups change sent from /Users endpoint.
- [RFC 7643 - System for Cross-domain Identity Management: Core Schema - check groups attribute description]
- This leads to bad data as ‘user1’ has both ‘group1’ and ‘group2’ in it’s groups attribute
Any reasoning behind this mechanism, as it may create discrepancies in data in future in SCIM server.

Hello
Thanks for posting.
PATCH /Groups/$groupID
PUT /Groups/$groupID
To add or remove users inside a specific pushed Group object on the SCIM server, Okta requires the following:
If these three requirements are met, Okta sends a request to add the specified users to the Group object on the SCIM server.
https://developer.okta.com/docs/reference/scim/scim-20/#update-specific-group-membership
Please review if these settings are correct on your configuration. If the issue keeps happening, I suggest you to open a support case with our team using the information in the link below: https://help.okta.com/en/prod/Content/Topics/Directory/get-support.htm
Let us know if this helps you.
Daniela Chavarria.
Okta Inc.
Hi Daniela,
I have gone through the documents and the settings are as expected.
Your answer points to user addition to a pushed group.
My concern is about the user removal from a pushed group.
My expectation:
Actual:
Also note this is the scenario for when user isn't part of any other group only.