Closed
Description
Describe the bug
Trying to add a user to a parent group when the user already is a member of a subgroup don't work. No errors, just not added to the group.
Version
16.1.0
Expected behavior
User gets added to the group or a error is thrown.
Actual behavior
User is not added to the group and no visible errors.
How to Reproduce?
- Create a new group.
- Create a group under the newly created group.
- Add a user to the subgroup created in step 2.
- Try to add the user to the parent group created in step 1.
You will get Success! Added group membership
, but the user is not added to the group. The same is true from the API.
The reverse order (add to the root group first) works as excepted.
Anything else?
If this is working as expected the API should return a error, and doing it in reverse should not work.