No permission to execute AddProjectNextItem
#24601
-
Hi, I’m trying to add many issues from a repository to a Github Project (beta). As there’s no way to do this in bulk through the website afaict, I tried using the API through the
and the project ID using
but when I’m trying to add an issue to that project following the documentation,
I receive a permission error:
I’m an admin of the organization and am able to add issues to the project through the web interface, but for some reason I don’t have permission to do it through the API. Am I doing something wrong or is this a bug in the project (beta) API? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Running into the same problem ;( Did you figure this out yet? |
Beta Was this translation helpful? Give feedback.
-
No, it looks like a bug to me. I’ve just opened a support ticket. |
Beta Was this translation helpful? Give feedback.
-
I ran into this and figured it out: the default permissions that the GitHub CLI requests don’t give |
Beta Was this translation helpful? Give feedback.
-
Indeed, generating a PAT with |
Beta Was this translation helpful? Give feedback.
-
Adding note for future people. This mutation is forbidden when using the GitHub GraphQL Explorer with the built-in authentication. |
Beta Was this translation helpful? Give feedback.
-
Same thing applies to
Error in the GraphQL Explorer shows as…
|
Beta Was this translation helpful? Give feedback.
-
I didn't have correct permissions on Project to execute mutations. After switching to write mode it all worked as it should. |
Beta Was this translation helpful? Give feedback.
I ran into this and figured it out: the default permissions that the GitHub CLI requests don’t give
write:org
permissions. You can fix this by generating your own PAT and pasting it in when runninggh auth login