How to Access User Email Addresses via Jira Cloud API
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
You can use the Jira Cloud REST API to get users' email addresses.
Environment
Jira Cloud
Solution
Currently there are three known API endpoints in the cloud that return an email address along with an Atlassian Account ID.
Get user endpoint /rest/api/2/user
You need the Browse users and groups global permission.
Check out further details in the doc Api-2-user-get
Find users by query endpoint /rest/api/3/user/search/query
You need the Browse users and groups global permission.
The usage and the query statements to be used are explained in the doc api-rest-api-3-user-search-query-get
Use the Organizations REST API endpoint /v1/orgs/{orgId}/users/search to find users within your organization. This API is available exclusively for customers who are using the new user management experience. Learn more about the centralized user management for Atlassian Cloud apps.
Caveat
Jira Cloud end users can choose to hide their personal account details, including an email address from others. For more details, see the Profile visibility overview.
To easily retrieve all users' email addresses, use the user management page (<yourcompany>.atlassian.net/admin) on the website for a straightforward export option.
Was this helpful?