The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Atlassian Admin API not returning list of Users in Postman

Rebecca Hopper
Contributor
January 5, 2022

I am trying to use the Admin REST API to get a list of users, so that I don't have to go in and manually check them to see if they have enabled Multi Factor Authentication.

As stated here, I am first trying to get a list of users.

I have generated an API Key, and in Postman added it as a Bearer Token and with this URL:  I get a response, but there is no data:  https://api.atlassian.com/admin/v1/orgs/{orgId}/users

Response is: 

{
    "data": [],
    "links": {
    }
}

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Pramodh M
Community Champion
January 5, 2022

Hi @Rebecca Hopper 

Use the below API to get the Users list

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-users-search-get

Use the normal account token, you will get the user's list

curl --request GET \ 
--url 'https://your-domain.atlassian.net/rest/api/3/users/search' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'

You can add the parameters - startAt and maxResults to paginate if you have more number of users

Thanks,
Pramodh

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events