Remove an organization role from a user
DELETE
/orgs/{org}/organization-roles/users/{username}/{role_id}
Remove an organization role from a user. For more information on organization roles, see “Using organization roles.”
The authenticated user must be an administrator for the organization to use this endpoint.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” org
required
string
The organization name. The name is not case sensitive.
username
required
string
The handle for the GitHub user account.
role_id
required
integer
The unique identifier of the role.
Responses
Section titled “ Responses ”Response