Skip to content

API v4 - Unable to Retrieve Email - Resource not accessible by integration #24774

Discussion options

You must be logged in to vote

Hi @c-brooks,

Thanks again for your patience, here is the feedback based on our Support teams research:

The reason that request returns the specific error message is because a user’s email is only accessible via user-to-server request (in other words, an OAuth token and not an installation token).

Here’s some more context: when a GitHub App is installed to a repo, it requests repo-specific permissions to the authorizing user. However, a GitHub App can only get user-specific information if the user in question has chosen to be identified by the app as a part of the User Authorization flow described here:

https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-use…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants