curl -X POST --user <user>:<password> https://owncloud.server/files82/ocs/v1.php/cloud/users/uiserid/groups/ -d groupid=“testgroup"
The API call should modify users group memberships.
You receive an error
This was tested on oc 8.2.5 and 9.0.3. This behaviour was consistent on both versions.
@DeepDiver1975 @PVince81 Any clue why can be modify the memberships?
@tomneedham I remember you created the API, could you tell us what should be expected?
how should be the behaviour with the group admins?
Does changing memberships work in the UI ?
Maybe there's a bug in this API. (note that the UI doesn't use this API)
You need to remove the trailing slash after "groups" to have the correct API call.
Still, it doesn't work on 9.0.4, confirmed.
From what I see in the code it only checks whether the user is an admin, not subadmin.
Fix is here #25788
Thanks @PVince81 !