Skip to content

Check organization membership for a user

GET
/orgs/{org}/members/{username}

Check if a user is, publicly or privately, a member of the organization.

API method documentation

org
required
string

The organization name. The name is not case sensitive.

username
required
string

The handle for the GitHub user account.

Response if requester is an organization member and user is a member

Response if requester is not an organization member

Location
string
Example
https://api.github.com/orgs/github/public_members/pezra

Not Found if requester is an organization member and user is not a member