Implement REST API to upload an avatar picture

XMLWordPrintable

    • 11

      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:

            Assignee:
            Aneita
            Reporter:
            Jayant Suneja (Inactive)
            Votes:
            29 Vote for this issue
            Watchers:
            31 Start watching this issue

              Created:
              Updated: