provider orgs GET /orgs/{org}/blocks/{username}
@utdk/github /orgs/{org}/blocks/{username}
Check if a user is blocked by an organization
Returns a 204 if the given user is blocked by the given organization. Returns a 404 if the organization is not blocking the user, or if the user account has been identified as spam by GitHub.
org path required
The organization name. The name is not case sensitive.
string
username path required
The handle for the GitHub user account.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
orgs.checkBlockedUser
GET/orgs/{org}/blocks/{username}
Returns a 204 if the given user is blocked by the given organization. Returns a 404 if the organization is not blocking the user, or if the user account has been identified as spam by GitHub.

Parameters

required

The organization name. The name is not case sensitive.

required

The handle for the GitHub user account.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.orgs.checkBlockedUser()