How to list outside collaborators via the GraphQL API

Is there a way to use the GraphQL API to list outside collaborators for an Organization or Enterprise?

I think I can figure out how to do it by going via:
Organization > Repositories > Collaborators > PermissionSources

But, is there a more direct way to do it?

I used this query in insomnia generated via the Graphql explorer

  enterprise(slug: "your-enterprise-name") {
    ownerInfo {
      outsideCollaborators(last: 10) {
        nodes {

This should give you a list of all the outside collaborators in your enterprise. The outside collaborators api is paged so you have to specify size



Thanks for that. I’m not sure why, but that’s not working for me - possibly because although I’m an admin of our organization, I only have “member” permissions at the enterprise level.

To get this working so far, I’m going through all of our repositories and getting collaborators, and comparing that with a list of organization -> membersWithRoles to see who is a repo collaborator but not a member of the organization. It’s a bit slow and clunky, but it works.