By: Moshlehuddin Mazumder user 19 Jan 2018 at 5:50 a.m. CST

3 Responses
Moshlehuddin Mazumder gravatar
I am trying to add/remove users to groups using Gluu's SCIM api. When I add an user to a particular group it works fine. Group shows added member in the UI and user panel shows correct **memberOf** property. But when I try to remove an user from a particular group, group ui shows member is removed, but in user panel it still shows the **memberOf** property, which is wrong. I have dig down the code a bit. It seems the problem is in _oxTrust-version_3.1.0\server\src\main\java\org\gluu\oxtrust\service\scim2\Scim2GroupService.java_ **updateGroup** method. It only handles members that was posted within the Group _json_. As the member is removed from group, it won't be present in _json_. But code fails to check removed group member, and I think that's the reason behind user not being updated properly. I think if the logic is changed to find out added group member as well as removed group member, this problem will be fixed.

By Mohib Zico Account Admin 19 Jan 2018 at 6:11 a.m. CST

Mohib Zico gravatar
Thanks Moshlehuddin. Assigning to SCIM developer for review.

By Jose Gonzalez staff 21 Jan 2018 at 7:19 a.m. CST

Jose Gonzalez gravatar
Hello Moshlehuddin, This is an interesting finding indeed. Thanks for reporting. I opened an [issue](https://github.com/GluuFederation/oxTrust/issues/820) to review & solve. The fix will be part of our next release then. We are working on a revamped scim server implementation which is currently available in master branch of [oxTrust](https://github.com/GluuFederation/oxTrust/) project. In this version we have done a hard work to improve standard compliance and cover features we have been missing, so if you guys have the skill you can do some test drive once the issue is closed. It will be tackled in the next few days. Kind regards, Jose.

By Moshlehuddin Mazumder user 21 Jan 2018 at 11:11 p.m. CST

Moshlehuddin Mazumder gravatar
Thanks for the quick reply. Really appreciate it :)