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:
Community moderators have prevented the ability to post new answers.
Use the below API to get the Users list
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.