I'm trying to parse data with basic auth, using API token from admin account, at our jira workspace.
So it's looks like this:
GET | https://ourdomain.atlassian.net/rest/api/2/user?accountId=user_acc_id
it shows next JSON in response:
{
"self": "https://ourdomain.atlassian.net/rest/api/2/user?accountId=user_acc_id",
"accountId": "user_acc_id",
"accountType": "atlassian",
"avatarUrls": {
"48x48": "https://secure.gravatar.com/avatar/....png",
"24x24": "https://secure.gravatar.com/avatar/....png",
"16x16": "https://secure.gravatar.com/avatar/....png",
"32x32": "https://secure.gravatar.com/avatar/....png"
},
"displayName": "Business Analyst",
"active": false,
"timeZone": "Europe/Kiev",
"locale": "ru_RU",
"groups": {
"size": 0,
"items": []
},
"applicationRoles": {
"size": 0,
"items": []
},
"expand": "groups,applicationRoles"
}
And nothing else, where in docs there is more fields, and email is always shown by default. What I'm doing wrong?
Same challenge here, while using site admin credentials
1. i CANNOT get the email of users outside my org via API (called from outside)
2. but i CAN get all (org and non-org) emails via the "export user" feature of "user management"
Not sure why...
Hi Andy
This will be related to the visibility and the type of users un-managed or managed accounts
https://support.atlassian.com/atlassian-account/docs/update-your-profile-and-visibility-settings/
https://support.atlassian.com/confluence-cloud/docs/configure-user-email-visibility/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the reply!
I have email visibility "only you and admins" and I'm an admin also. Is there any way to parse JIRA emails only with admin API token? Cause right now, I can only see my email via REST API route, but not others?
P.S. Other users has different visibility settings, but before I was assuming that if I had admin role - I could parse any data with REST API calls
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy
Does your account email domain match as the same as the user you are trying to see the email of?
Is the user account a managed account or an unmanaged account
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
All accounts is inside of workspace, but when I'm trying to parse data from this request URL:
https://admin.atlassian.com/gateway/api/adminhub/um/site/<CLOUD_ID>/users?count=20&start-index=1
It shows, that any user from is:
"managedStatus":{"managed":false,"owner":null}
I thought that any user in Jira cloud, that can access tickets is already managed...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy
No users are only managed users if you have verified the domain that they belong to in your Atlassian cloud instance
https://support.atlassian.com/user-management/docs/what-are-managed-accounts/
https://support.atlassian.com/user-management/docs/verify-a-domain-to-manage-accounts/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We sent verification in jira administration. How do I check in JIRA interface that accounts are managed accounts now?
Does it affects to email fetching with REST API?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If an account becomes verified by domain verification they will show in the managed accounts under Directory in admin.atlassian.com
The managed accounts in id.atlassian.com with have the organisation set in the profile visibility e.g.
contact - email address
org name - Only visible to people who have access to the <org name> organization
which should mean that if your account is in the same org can see the email address of others in the same org
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Domain verification didn't affected to email parsing, I still have no emails for users with admin token
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
When an account is managed there are 3 options in the users profile for visibility:
1. Only you and admins
2. Organisation
3. Anyone
So depending on what that is set to under the users profiles contact -email address in id.atlassian.com section will determine who can see the email address including from the REST API.
If set to 1 or 2 an admin should be able to see the email address if querying the API if the account is from the same verified domain.
One way this wouldn't work is if the domain of the account you are using to query the API is not part of the same domain that's verified
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.