It's possible to add users to SCIM locked groups via the REST API

XMLWordPrintable

    • Severity 3 - Minor

      Groups that are used to sync users from an identity providers should be read-only within an Organization's directory, meaning users cannot be added or removed via the Atlassian User Interface or via the REST API.

      This is achieved when using a product REST API endpoint used for group modification:

      Steps to Reproduce

      1. Configure user provisioning with an identity provider
      2. Create a group within the identity provider that will be used to sync users to Atlassian
      3. Using either the Confluence or Jira REST API endpoints to add a user to groups, add an existing user on your site to a SCIM synced group.

      Expected Results

      User receives an error indicating the group is not modifiable, similar to the message below:

      {
          "errorMessages": [
              "An error occurred: com.atlassian.idp.client.exceptions.BadRequestException: {\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:Error\"],\"status\":\"400\",\"detail\":\"Group not modifiable\",\"errorType\":\"InvalidSchema\",\"message\":\"Group not modifiable\"}"
          ],
          "errors": {}
      }

      Actual Results

      The user is added to the group.

      Workaround

      Currently there is no known workaround for this behavior.

            Assignee:
            Alireza Asadi
            Reporter:
            Ishan Chaudhuri
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: