Organizations REST API - Get users in an organization returns an empty list

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.

1 Like

Welcome to Atlassian’s Developer Community, Manuel!

I confirm your result and it is the expected result. That said, I do see how that’s not clear from the REST API docs. This is clearer if you have gone through the user documentation for Atlassian Access. Specifically, you have an organization where there are no managed users.

You can “claim” users for an organization by verifying an email domain.

1 Like