# Check organization membership for a user

From **GitHub v3 REST API**.

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

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

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `username`

- Location: path
- Required: true
- Type: `string`

## Responses

### `204`

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

### `302`

Response if requester is not an organization member

#### Headers

##### `Location`

- Type: `string`

- Example: `https://api.github.com/orgs/github/public_members/pezra`

### `404`

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

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/members/{username}
```
