bitbucketbitbucket-api

In Bitbucket API, how can I get a list of ALL licensed users?


I've looked at the Bitbucket API docs and this post BitBucket get list of all contributors. The second link asks about users belonging to a repo, but in my case I just want a list of ALL licensed users. Is there really NO way to do this or did I miss it in the docs?


Solution

  • Execute something like this:

    curl -s --user USER:PASS --request GET https://BITBUCKET-SERVER/rest/api/1.0/admin/users?limit=1000 | jq --raw-output '.values[] | .name + " => " + .displayName'
    

    And you'll get the "username => name" list of users.