Previously, the Get users from group API (ex: YOURSITE.atlassian.net/rest/api/latest/group/member?groupId=YOURGROUPID) would return an emailAddress for Atlassian’s new(ish) Service Accounts.
Recently, this has changed. For an account with an email like: sa-something-123456@serviceaccount.atlassian.com, the emailAddress is simply missing from the response.
I don’t recall if those accounts previously had the accountType of app but they do now.
It seems like Atlassian is having difficulties figuring out how to treat Service Accounts vis-a-vis regular accounts.
Since their introduction if you looked that same group in a site’s Groups UI, the SA would not be visible. The only way you can view and edit an SA’s Group memberships in the SA admin interface for each one.
Which I suppose makes sense - SA’s are “global”, and groups are site-specific. (Although we are still a non-Vortex organization, not the centralized user management experience.)
Still it’s frustrating that the automation I wrote to pull all members of a group, including email addresses, is now broken.