title: OAuth Personal Token to access organization's private repo: Bad Authentication Error
body: <p>According to this <a href="https://stackoverflow.com/questions/31159275/how-do-i-generate-the-github-oauth-token-for-organization-accounts">post</a>, I should be able to generate a personal access token under my profile that has access to an organization's private repo, and use this personal access token for authentication to access an organization's private repo via Github-api.</p>
  <p>However, when using this token, I get a 401 Unauthorized response / &quot;Bad credentials&quot;. Is there extra permissions needed for my profile in order to use the Github API on that organization's private repo? Is there scopes I should have checked off when making my personal access token in order for it to work? My profile has the permission to read and contribute to the org repo, so I am confused why my profile's access token is met with a 401.</p>
  <p>I ultimately want to run <code>GET {{root}}/repos/{{owner}}/{{repo}}/contents/</code>, where the owner is the organization name. Oddly, when using my personal access token on my own forked copies of the organization's repo, I also get a 401 Unauthorized.</p>
  <p>EDIT: I checked off all possible scopes to attach to a token. Even with this token, I still get a 401 &quot;Bad Credentials&quot;. There must then be a different set of permissions between being a contributor to a repo versus using the github-api to query the repo. Correct?</p>