Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

GraphQL: Repo collaborators organized by team?

In the graphql API, Repostory has a collaborators connection; however, it always seems to return bare users. We generally grant repo permissions only to teams, not to users directly. Is there a way to retrieve the access grants in the form they were made (i.e. by team)?

 

Thanks!

1 Reply
Community Manager
Message 2 of 2

Re: GraphQL: Repo collaborators organized by team?

The collaborators connection is for outside collaborators, in other words people that have access to that repository that are not members of your organization. You can easily find out the permissions that a team was granted to each repository by going from the organization, to the team, then use the `edges` of the `repositories` connection from the team to get the permissions granted for each repository.

 

I hope that helps!