Bug: The collaborator permissions API does not return "maintainer"

The collaborator permissions API /repos/{owner}/{repo}/collaborators/{username}/permission does not return the “maintain” permission, only “admin”, “write”, “read” and “none”.

Initially we thought this was a documentation error, but we checked production, and for maintainers the API returns “write”.

1 Like

Thanks for raising @StevePole! Looking into it :slight_smile:

@StevePole we’re trying to get this prioritised, but in the meantime, there is this API that returns what you need as a workaround too https://docs.github.com/en/rest/reference/repos#list-repository-collaborators

1 Like