In the Enterprise version of github if you browse to:
you can see a table under the heading “Individual permissions” which lists out all the users who have access to this repo and the means they use to access it, showing the most permissive access.
Is there any way to get this data from the API? So far, I have only found ways to see the access level. I have not found anything that shows how the access was granted. It would be nice even if I could just grab this table programatically.