Uploaded image for project: 'Atlassian Access'
  1. Atlassian Access
  2. ACCESS-1387

Automatic Provisioning: PATCH API endpoint to update user attributes doesn't work with manager field

    XMLWordPrintable

Details

    Description

      Atlassian Status Update - Nov 29, 2022

      Hi Everyone,

      Our development team has advised that support for syncing a "manager" field value in Azure AD is planned to be shipped at the end of January 2023.

      We will update this ticket when we have more information.


      Thanks,
      Derrick
      Atlassian Cloud Support

      Issue Summary

      As per: How to sync the manager attribute into Atlas it is possible to configure Okta to sync the "manager" field value to a user's Atlassian account

      The manager field value is only visible using reporting lines feature on Teams Central/Atlas and is not visible on the user's Atlassian account profile or in product(Jira/Confluence) contact card - ⚡️ Supercharge your project and goal reporting with your org structure

      Only Okta is supported at the time of writing(10-Jun-2022), so admins may want to use the API endpoints to update user SCIM/provisioning records to include the "manager" field.

      There are 2 supported request methods to update user SCIM record attributes:

      Steps to Reproduce

      Try sending a PATCH call to update the manager field. Example:

      curl --request PATCH \
        --url 'https://api.atlassian.com/scim/directory/<dir_id>/Users/<user_scim_id>' \
        --header 'Authorization: Bearer <dir_API_token>' \
        --header 'Accept: application/json' \
        --header 'Content-Type: application/json' \
        --data '{
        "schemas": [
          "urn:ietf:params:scim:api:messages:2.0:PatchOp"
        ],
        "operations": [
          {
            "op": "Add",
            "value":{
            "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{
            "manager":{
                       "value":"manager_email_address@example.domain.com"
                      }
              }
            }
          }
        ]
      }'
      

      Expected Results

      The manager field in SCIM record is updated and the manager value appears in Atlas/reporting lines feature

      Actual Results

      The call runs without an error response - 200 response, but the manager field is not updated

      Workaround

      Use the PUT method instead of PATCH: https://developer.atlassian.com/cloud/admin/user-provisioning/rest/api-group-users/#api-scim-directory-directoryid-users-userid-put

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dnguyen4 Derrick Nguyen
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: