Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-72205

Not returning user email address for Org Admin through Confluence API Get user request

    XMLWordPrintable

Details

    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

      1. Have a user set their profile visibility for emails to Org Member or Anyone(And Admin)
      2. 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.
      3. 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

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            590db20ccbc2 Isaac Spann
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: