Must have push access to view repository collaborators

Hi there! :smiley:
I get Must have push access to view repository collaborators. despite being the owner with following request:

async function getCollaborators(accessToken) {
  const r = await fetch([collaboratorURL](https://api.github.com/repos/mattiasinokuchi/veggies/collaborators), {
    headers: {
      Accept: 'application/json',
      Authorization: `Token ${accessToken}`
    }
  })
  return r.json()
}

What am I doing wrong?
/Mattias

Nevermind. I forgot to use a scope in my request for the access token.

1 Like

@mattiasinokuchi I have a similar problem, User is the admin of the organization and have scopes to read the repo (read:org,repo) still facing permission issue with /collaborators API

@mattiasinokuchi Can you please share the scopes you have missed

1 Like