I am trying to use the Admin REST API to get a list of users. This is to go through the list and disable users based on criteria. That way they are disabled across all atlassian products with our company.
However I am not getting full list of users.
I have generated an API Key, and in Postman added it as a Bearer Token and with this. Per API details sending
curl --request GET \ --url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/users' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
For example, in the returning payload my name is not returning. I have access to JIRA, Bitbucket, Opsgenie and Status Page. Which means for some reason full list of all users is not returning.
I don't want to use JIRA to get list of users, because some users may be in other Atlassian products but not JIRA.