Users API returns users 'initials' avatars instead of real ones

Hello,

Recently I noticed my app was displaying user ‘initials avatar’ instead of real ones. For context, I use both Jira /rest/api/3/user and /rest/api/3/user/bulk endpoints to retrieve users information in a Forge function.

When I use: api.asApp().requestJira I receive:

INFO    10:10:37.392  cf1f550a7edfaa80  >>> {
  '48x48': 'https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/CG-4.png',
  '24x24': 'https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/CG-4.png',
  '16x16': 'https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/CG-4.png',
  '32x32': 'https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/CG-4.png'
}

And if I switch to asUser() , I retrieve what I want:

INFO    10:09:41.102  95025bd49bb31a44  >>> {
  '48x48': 'https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/5bccf2f82bfc57158b2faa60/98b8c6d1-72cc-40bf-84bd-a008869c8aaa/48',
  '24x24': 'https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/5bccf2f82bfc57158b2faa60/98b8c6d1-72cc-40bf-84bd-a008869c8aaa/24',
  '16x16': 'https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/5bccf2f82bfc57158b2faa60/98b8c6d1-72cc-40bf-84bd-a008869c8aaa/16',
  '32x32': 'https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/5bccf2f82bfc57158b2faa60/98b8c6d1-72cc-40bf-84bd-a008869c8aaa/32'
}

This happen with both API V.2 and V.3. Did I missed a permission or a change in how these API work ?

Thanks,
Clément

Can you check what happens if the user’s profile picture is changed to public?

To change your profile picture to public:

  1. Go to Profile and visibility
  2. Change Who can see your profile photo? to Anyone.

Thanks for your response! Indeed, changing the privacy setting allow the app to retrieve the profile picture:

So, is this the expected API behavior ? If yes, the only acceptable solution is to use the act-as-user way then ?

Hi, I’m facing the same issue, is there any other option to get profile pictures inside the organization that doesn’t involve asking everyone to change their profile picture visibility?

Hi, we are also experiencing this issue in Confluence. Are there any updates on this?

@marita I filled in a support request about this specific issue.
I’ll let you know how it goes