Issue #6086 invalid

GET a list of user privileges granted on a repository

R_Peres
created an issue

This call is not working. I am making the following request:

https://api.bitbucket.org/1.0/privileges/latinojoel/assar-chouricas/R_Peres I know that I have permissions (admin) on the repository, but It will only return:

[] (empty array)

Another example, If I try to get my privileges like this:

https://api.bitbucket.org/1.0/privileges/r_peres

(meanwhile it was changed)

Although I have read permission on the same repo (assar-chouricas) it won't show me that on the list.

Comments (5)

  1. Jon Mooring staff

    Only users who have been granted explicit user-level access to the repository (not via groups or owner/creator rights) are exposed by the /privileges/ endpoint.

    If you would like to see users granted access via groups, please use the /group-privileges/ endpoint like so:

    https://api.bitbucket.org/1.0/group-privileges/latinojoel/assar-chouricas/

    If you need to know the owner or creator of a repository, please use the /repositories/ endpoint like so:

    https://api.bitbucket.org/1.0/repositories/latinojoel/assar-chouricas/

    Hope this helps,
    Jon

  2. Log in to comment