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

Check public organization membership for a user

Check if the provided user is a public 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.

2 status codes
204Response if user is a public member
404Not Found if user is not a public member

Error handling

A 404 is returned: Not Found if user is not a public member.