-
Suggestion
-
Resolution: Unresolved
-
None
Currently, calling the Get user endpoint in Confluence Cloud returns the following:
"profilePicture":{ "path":"/wiki/aa-avatar/557058:6b9c9931-4693-49c1-8b3a-931f1af98134", "width":48, "height":48, "isDefault":false }
This path is relative to the current confluence tenant, and resolves to this full URL via a 302 redirect:
Wheras calling the Get user endpoint in Jira cloud returns the following, with existing full URLs at different sizes:
"avatarUrls":{ "48x48":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:6b9c9931-4693-49c1-8b3a-931f1af98134/7f0c6294-4750-4ff7-a6cb-be6b43744fc5/48", "24x24":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:6b9c9931-4693-49c1-8b3a-931f1af98134/7f0c6294-4750-4ff7-a6cb-be6b43744fc5/24", "16x16":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:6b9c9931-4693-49c1-8b3a-931f1af98134/7f0c6294-4750-4ff7-a6cb-be6b43744fc5/16", "32x32":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:6b9c9931-4693-49c1-8b3a-931f1af98134/7f0c6294-4750-4ff7-a6cb-be6b43744fc5/32" }
It would be great if Confluence cloud could add this avatarUrls property to the the user response models, both to enhance consistency between Atlassian products, and also to make it easier to display Confluence avatars in Forge applications (which currently include a CSP for avatar-management--avatars.us-west-2.prod.public.atl-paas.net but not for the current Confluence tenant - thus requiring developers to add *.atlassian.net to their external domains egress)