Checking repository access through App user installation

I’m building a GitHub App and I need to check if a user can access a given repository through the application. Retrieving the list of user installations (using and then fetching the list of accessible repositories for each of those installations (using works, but it’s obviously far from optimal. Is there a better, more direct, way to check for access?


Have the same issue! Did you find a solution?

Nope, just used the approach described in the question: iterate over all installations for the user gathering accessible repositories and checking that list.

Thanks for the speedy reply!