Is there a way to review access/ permissions on all repositories without visiting each one?

I’d like to review who has access where across my organisation. We have 100+ repos so visiting each one is not an option.
Is there a way to get a report or export of all permissions on all repos?

Hi there! :wave: Welcome to the Community!

This isn’t really possible in the web UI, I’m afraid. Even in GitHub Enterprise, exporting a report is done repo by repo:

https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/viewing-people-with-access-to-your-repository

You could potentially use the API to speed things up.

There is an endpoint to list organization repos:

An endpoint to list which teams have access to the repo, and at what level:

And an endpoint to list repository collaborators, which would include outside collaborators and org members given access outside of a team:

1 Like