AP.request on /user/bulk doesn't return proper user avatars anymore

Hi,

my static connect app for Jira calls /rest/api/2/user/bulk?accountId=... and then uses the returned avatar URLs.

For a couple of days now the response contains an initials URL instead of the proper avatar URL if I call this API with AP.request from a jiraIssueContents module.

{
    "values": [
        {
            "self": "https://SITE.jira.com/rest/api/2/user?accountId=ANOTHER_USER_ACCOUNT_ID",
            "accountId": "ANOTHER_USER_ACCOUNT_ID",
            "accountType": "atlassian",
            "avatarUrls": {
                "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/JL-6.png",
                "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/JL-6.png",
                "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/JL-6.png",
                "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/JL-6.png"
            },
            "displayName": "ANOTHER USER",
            "active": true,
            "timeZone": "Europe/Berlin"
        },
        {
            "self": "https://SITE.jira.com/rest/api/2/user?accountId=MY_USER_ACCOUNT_ID",
            "accountId": "MY_USER_ACCOUNT_ID",
            "accountType": "atlassian",
            "emailAddress": "MY_EMAIL",
            "avatarUrls": {
                "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/MY_USER_ACCOUNT_ID/ANOTHER_UUID/48",
                "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/MY_USER_ACCOUNT_ID/ANOTHER_UUID/24",
                "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/MY_USER_ACCOUNT_ID/ANOTHER_UUID/16",
                "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/MY_USER_ACCOUNT_ID/ANOTHER_UUID/32"
            },
            "displayName": "MY_NAME",
            "active": true,
            "timeZone": "Europe/Berlin"
        }
    ]
}
  • This happens only for account IDs belonging to other users, but not for my own.
  • Same on the v3 API.
  • When directly opening the same URL in the browser, I get avatar URLs for all users. Therefore I can still see the other user’s avatars in the original Jira UI (comments, assignees, etc.).
  • The app code has not been changed for more than 1 year.

Descriptor extract:

    "authentication": {
        "type": "none"
    },
    "scopes": [
        "read",
        "write"
    ],

What am I missing?

Thanks,
Jens

1 Like

This seems to be fixed now. Thanks to whoever fixed it - in case you will ever read this message :wink:

1 Like