Cannot remove groups from users using the REST API /rest/api/2/group/user endpoint

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Component/s: Ecosystem
    • 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

      1. 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
        
      2. 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.

            Assignee:
            Dave Meyer
            Reporter:
            Daniel Brito [Atlassian]
            Votes:
            12 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: