Atlassian Admin API not returning list of Users in Postman

Rebecca Hopper 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

0 votes
Answer accepted
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events