v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
enterprise-admin

Remove enterprise user role assignment

Removes an enterprise role from an enterprise user.

To use this endpoint, the authenticated user must be one of:

  • An administrator for the enterprise.
  • A user, or a user on a team, with the fine-grained permission write_enterprise_custom_enterprise_role in the enterprise.

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

delete/enterprises/{enterprise}/enterprise-roles/users/{username}/{role_id}

Path parameters

enterprisestring required

The slug version of the enterprise name.

usernamestring required

The handle for the GitHub user account.

role_idinteger required

The unique identifier of the role.

Response

Response