Retrieving email addresses of users through Jira Cloud REST API
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
The Jira Cloud REST API has endpoints which can be used to retrieve email addresses of users.
Environment
Jira Software Cloud
Solution
As of now in cloud, there are two known API endpoints where an email address is also returned along with an Atlassian Account Id.
- Get user endpoint /rest/api/2/user
Permissions required: Browse users and groups global permission.
The details are explained in the below doc Api-2-user-get
- Find users by query endpoint /rest/api/3/user/search/query
Permissions required: Browse users and groups global permission.
The usage and the query statements that need to be used are explained in this doc api-rest-api-3-user-search-query-get
Caveat
- Jira Cloud end users have the ability to restrict the visibility of their own personal account details. This can include email address. See the Profile visibility overview for more details.
- In case you are looking to get the email address of all users, one workaround is to use the user management page in the website instead and use the export option, which will give you all the email addresses of all the users.