GET a list of user privileges granted on a repository

R_Peres avatarR_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

    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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.