Details
-
Bug
-
Resolution: Timed out
-
Low
-
2
-
Minor
-
Description
Issue Summary
This issue is happening when profile visibility for a users email address is set to Org Member or Only Me(Admin also). The Org Admin can not view the email address through the Confluence API with either the GET user request or the search user API request. If that Org Admins email address isn't a managed user.
Example API GET User endpoint:
https://<SITE-NAME>.atlassian.net/wiki/rest/api/user?accountId=<Atlassian-Account-ID>
Steps to Reproduce
- Have a user set their profile visibility for emails to Org Member or Anyone(And Admin)
- Have a Org Admin who is also a Site Admin run either of the following API calls for the new user with above-mentioned visibility settings configured.
- You'll notice the HTTP response doesn't provide the email address.
Expected Results
That the email object should be populated:
{ "type": "known", "accountId": "<ATLASSIAN-ACCOUNT-ID>", "accountType": "atlassian", "email": "<EMAIL-ADDRESS-POPULATED>", "publicName": "<NAME>", "profilePicture": { "path": "/wiki/aa-avatar/<ATLASSIAN-ACCOUNT-ID>", "width": 48, "height": 48, "isDefault": false }, "displayName": "<ACCOUNT-NAME>", "isExternalCollaborator": false, "_expandable": { "operations": "", "personalSpace": "" }, "_links": { "self": "https://<SITE-NAME>.atlassian.net/wiki/rest/api/user?accountId=<ATLASSIAN-ACCOUNT-ID>",
Actual Results
There is no email address being populated.
{ "type": "known", "accountId": "<ATLASSIAN-ACCOUNT-ID>", "accountType": "atlassian", "email": "", "publicName": "<NAME>", "profilePicture": { "path": "/wiki/aa-avatar/<ATLASSIAN-ACCOUNT-ID>", "width": 48, "height": 48, "isDefault": false }, "displayName": "<ACCOUNT-NAME>", "isExternalCollaborator": false, "_expandable": { "operations": "", "personalSpace": "" }, "_links": { "self": "https://<SITE-NAME>.atlassian.net/wiki/rest/api/user?accountId=<ATLASSIAN-ACCOUNT-ID>", "base": "https://<SITE-NAME>.atlassian.net/wiki", "context": "/wiki" } }
Workaround
- Users can use the Org REST API to generate this information: Manage an Organization with admin API