We are trying the Cloud Admin API, specifically the Get users in an organization REST API to get the full list of users in an organization like so:
curl --request GET \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/users' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
But when we call the API, we get an empty list of users, even though we have over 900 users.
{
"data": [],
"links": {
"self": "https://api.atlassian.com/admin/v1/orgs/{orgId}/domains"
},
"meta": null
}
Not sure what’s going on, I wonder if anyone else has had the same issue.