[GraphQL] Filter repository collaborators by permission


We’re auditing permissions granted across all our repos, and would like to get a list of all the collaborators for each of our organizations repo that have ADMIN permissions. I can use the following graphql query to get all the collaborators and permissions:

  repository() {
    collaborators(first: 100) {
      edges {
        node {

But since we have 100s of collaborators on our repos, the pagination overhead of doing this for each repo to filter clientside is quite expensive. Is there anyway we can filter by permission serverside in the query?


1 Like