Check organization membership for a user
GET
/orgs/{org}/members/{username}
Check if a user is, publicly or privately, a member of the organization.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” org
required
string
The organization name. The name is not case sensitive.
username
required
string
The handle for the GitHub user account.
Responses
Section titled “ Responses ”Response if requester is an organization member and user is a member
Response if requester is not an organization member
Headers
Section titled “ Headers ” Location
string
Example
https://api.github.com/orgs/github/public_members/pezraNot Found if requester is an organization member and user is not a member