Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-67118

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Ecosystem
    • None

      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.

              dmeyer Dave Meyer
              dbrito Daniel Brito [Atlassian]
              Votes:
              12 Vote for this issue
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: