Hello dear Community members. I want to ask about Jira Rest API. We are collecting user details through Rest API with GET /rest/api/2/user method. It shows only 10 users email section, other users are shown without email field. how can we get all users email list with API? also in the user details can we get Department information? there is no field in the documentation with department info.
Regards
Hi
With GDPS enforced you cannot get emails by querying "/rest/api/2/user" (unless users made their emails publicly visible)
There is a dedicated method if you are developing a connect app
But you will need to get an approval from Atlassian to use it
as Marc has mentioned there is no department information - see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-get and the "User" value/response (structure) it returns
Alex
Hi Alex. Thank you for your response.
You have mentioned that there is no department info in user-get method, but is it possible to get this information with other method?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not aware of any. Honestly I dont think Jira has this information - see https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Araz.Valizada As far as I know, department info is not stored in the Jira user information.
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.