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:
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
It looks like you're new here. Sign in or register to get started.