-
Suggestion
-
Resolution: Unresolved
-
8
-
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:
- is duplicated by
-
JSWCLOUD-23746 API methods for updating accounts avatars
- Closed