When querying the GraphQL API on behalf of my GitHub app, I was able to retrieve all members of my organization. However, one of my org members set their email to private (Personal Settings -> Emails -> “Keep my email addresses private”), and now when the app makes the query, not only do I not receive their email, but the entire OrganizationMemberEdge’s User node is returned as null. It still contains the Role, however. When checking my client response for errors, it says “Resource not accessible by integration” for path “organization.membersWithRole.edges.node.email”.
When testing the same query using my personal access token, the User node is still correctly returned, just minus the email.