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