I want to fetch details about user and their permission for a particular repository in a single API. Currently I am able to fetch details about all the repos for a particular workspace and using response of it, I have to use another API to fetch user and permission details.
Is there any way that for a particular project, I will get the details about all repos and their user and permissions under that project?
Thanks in advance
Hi @sachin shejul and welcome to the community.
This is not possible to do with a single API call.
Please keep in mind that there are two ways a user can have access to a repo
(1) via a user group (i.e. you invite a user to a user group, and then you add this user group to a repo from Repository settings > User and group access)
(2) direct repo access (i.e. you add a user to a repo from Repository settings > user and group access)
You can use this endpoint to list all explicit group permissions for a repository:
You can use the following endpoint to list all explicit user permissions to a repository:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.