Uploaded image for project: 'Identity'
  1. Identity
  2. ID-7859

Implement REST API to upload an avatar picture

XMLWordPrintable

    • 8
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem

      Create a REST API call to set the user profile image (avatar image).

      This would help bulk upload of avatar and allow admins to control Avatar picture for users

      Workaround

      Only available for managed accounts.

      The following REST API endpoint, while undocumented, is the same one used by the GUI to change the avatar from managed accounts. Example using curl. This web request can be adjusted as required based on the programming/scripting language.

        curl 'https://admin.atlassian.com/gateway/api/users/<atlassian_account>/manage/avatar' \
        -X 'PUT' \
        -H 'Authorization: Bearer adminRESTAPIToken' \
        -F file=@picture.jpg

      You need to generate the Admin API token for your organization:

              ayang@atlassian.com Aneita
              20d8b956adca Jayant Suneja
              Votes:
              17 Vote for this issue
              Watchers:
              18 Start watching this issue

                Created:
                Updated: