enterprise-admin
Remove all enterprise roles from a user
Removes all enterprise roles from an enterprise user in an enterprise.
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}
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/enterprises/{enterprise}/enterprise-roles/users/{username}
- Auth: none declared
Path parameters
enterprisestring required
The slug version of the enterprise name.
usernamestring required
The handle for the GitHub user account.
Response
Response
Changes
No recorded changes to this operation across all 83 revisions of this API.