Sample - GitHub REST API
GET/orgs/{org}/members/{username}

Check organization membership for a user

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

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
orgstringrequired
The organization name. The name is not case sensitive.
usernamestringrequired
The handle for the GitHub user account.

3 status codes
204Response if requester is an organization member and user is a member
302Response if requester is not an organization member
404Not Found if requester is an organization member and user is not a member

Error handling

A 404 is returned: Not Found if requester is an organization member and user is not a member.