It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Retrieve the user's avatar via the REST API endpoints

It is possible to retrieve the avatarUrl by adding the avatarSize param to the REST call. This will add the avatarUrl property added to each user object that is returned.


For example:

<Bitbucket URL>/rest/api/1.0/users/admin?avatarSize=64

The response will contain an additional avatarUrl:

avatarUrl: ""

In a similar fashion the same parameter can be added to the "/rest/api/1.0/admin/users" request. For example:

<Bitbucket URL>/rest/api/1.0/admin/users?filter=admin&avatarSize=64

This parameter can be added to any request and the avatarUrl will be then added to the user details. For example, this is how you can request for the details of a pull request and include the avatarUrl:

<Bitbucket URL>/rest/api/latest/projects/P1/repos/repo1/pull-requests/1/activities?avatarSize=64





Log in or Sign up to comment
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

994 views 1 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you