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)?
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!