-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
7
-
Severity 3 - Minor
-
Summary
Trying to remove groups from users in JIRA through the rest API /rest/api/2/group/user endpoint results in the following error "Cannot edit group memberships, as external user management is enabled, please contact your JIRA administrators."
Environment
JIRA v1001.0.0-SNAPSHOT
How to reproduce
- Make a REST call to remove a group from a user
curl -D- -b cookie.txt -X DELETE https://example123.atlassian.net/rest/api/2/group/user?groupname=jira-software-users&username=admin
- Receive a 400 response code and an error message "Cannot edit group memberships, as external user management is enabled, please contact your JIRA administrators."
Expected Result
A 200 OK response code and the group being removed from the target user.
Actual Result
{"errorMessages":["Cannot edit group memberships, as external user management is enabled, please contact your JIRA administrators."],"errors":{}}
Note
This affects add user to groups too: POST /rest/api/2/group/user
Workaround
Adding/Removing the group through the UI works fine.
- is duplicated by
-
JRACLOUD-67284 Unable to add users to group using /rest/api/latest/group/user REST API endpoint
- Closed
- relates to
-
HELIX-634 Loading...