"Resource not accessible by personal access token" when adding new collaborators on a repo #84932
Replies: 3 comments 1 reply
-
I've also double checked here if I was missing something, but apparently everything has been set correctly, so I'm wondering what's wrong. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I'm wondering which kind of permission I've to set in order to add new collaborators on a Repo through API calls.
I've successfully created an organization Repo, using a fine-grained personal access token configured with Administrations permissions.
After that I would like to invite some collaborators, but the API fails with the error "Resource not accessible by personal access token".
The API returns:
x-accepted-github-permissions: administration=write
which identifies the need of an Administration permission, which I've already set on the above mentioned token.
What should be the right setting for that?
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions