-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Personal Token:Must have admin rights to repository #1812
Comments
👋 Hi @sotiriszegiannis The permissions for the actual access token look quite broad, but it would then still depend on what permission the user has on the repo in question, and what exactly you are trying to update. Can you provide more details on what you are doing (a code sample would be great)? Thanks |
Hi @ryangribble So because non of the above solution was secure proof a third suggestion was put on the table. For each repo ,that the personal account i was using needed write access, would change the default repo permission for my account. |
Hey, this issue hasn't seen any attention in a long time. I'm curious, how would this work for standard |
@IEvangelist It Depends™ on what you're trying to do with the token. And while the user thought they had set all the right permissions, this bit is important to keep in mind:
Knowing what you're allowed to do within an organization (check the permissions your team has) will likely help to diagnose your issue. |
I'm the repo's owner, regardless of organizations -- why would that matter? Here is an issue I filed, but I believe it's still somehow related to the API token. I own the repo, and created an API token to interact with the repo. Why does organization have anything to do with my own repo? Does simply being a part of an organization mean that my own repos are subject to their restrictions? That wouldn't make any sense at all. The repo is mine, I created it and it is does not belong to those organizations -- right? What am I missing here? |
These are maintained separately, so you shouldn't impacted. The previous user had to deal with this headache.
If we're focused on repositories under your user account, I'd also confirm that you've set |
I had the same (original) issue but with OAuth App (so it might not be that original). It's true as above comment said; organization access scope is maintained separately. So when you are a repository owner in an organization (even is also an org owner), your own personal token can't get into organization access scope until granted. You have to grant yourself. |
@50kudos thanks for the reminder about OAuth app access restrictions for organizations - that's definitely something I've seen users have problems with in the past... |
I have the issue "message": "You need admin access to the team before adding a repository to it.", When I crate a repo. How can I solve that |
@daemenseth that error indicates your user is not an administrator of the team. That's not something changing the token can address. |
I'm going to close this out because it's not clear what work needs to be done in Octokit.net to improve this area. Please open a fresh issue if you have ideas. |
I m developing a desktop app that manages github accounts. I use a personal access tokens to retrieve information and update the repositories and issues. I have a couple of cases where as soon as i try to update an issue i get the error "Must have admin rights to repository".However i can retrieve all the repositories and issues but i can't update them. I have asked the github account owner to check all scopes. I m not the owner of the git account i m just using the token to perform the update operation.
Any pointers will really help.
The text was updated successfully, but these errors were encountered: