Error while removing user from a group using API

XMLWordPrintable

    • 1
    • Severity 2 - Major
    • 1

      Issue Summary

      Not able to remove any recent user added to the site from a group using the DELETE method of the API /rest/api/3/group/user.

      Steps to Reproduce

      1. Invite any new user to the site
      2. Add the user to any existing group
      3. Try to delete the user from the group using API
        curl --request DELETE --url ‘https://<site name>.atlassian.net/rest/api/3/group/user?groupname=<group name>&accountId=<said>’

      Expected Results

      User should be removed from the group

      Actual Results

      The below exception is thrown in the console

      "errorMessages":["An error occurred: com.atlassian.idp.client.exceptions.UserNotFoundException: {\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:Error\"],\"status\":\"404\",\"detail\":\"A user with ug:<random-numner> doesn't exists\",\"errorType\":\"UserDoesNotExist\",\"message\":\"A user with ug:4c56a3de-54bf-4e38-9e9b-664738f439d6 doesn't exists\",\"data\":\"ug:4c56a3de-54bf-4e38-9e9b-664738f439d6\"}"],"errors":{}}%  
      ...
      

      Workaround

      Users could only be removed from the group using the user management page.

            Assignee:
            Ben Kelley
            Reporter:
            Rahul Kumar
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: