> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# revoke_role

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/revoke_role.rs#L22-L29)
pub async fn [revoke\_role](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/revoke-role.md#method.revoke_role)( \&self, role: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), member: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[RevokeRoleResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Revoke membership in a role from a user or roleRevokes membership in a role from a user or role.

##### Arguments

<ul>
  <li>`role` - Name of the role in which membership will be revoked. Must be an existing role.</li>
  <li>`member` - Name of the user or role that will be revoked membership in `role`. Must be an existing user or role.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/revoke_role.rs#L43-L61)
pub async fn [revoke\_role\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/revoke-role.md#method.revoke_role_with_opts)( \&self, role: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), member: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), options: [RevokeRoleRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[RevokeRoleResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Revoke membership in a role from a user or roleRevokes membership in a role from a user or role.

##### Arguments

<ul>
  <li>`role` - Name of the role in which membership will be revoked. Must be an existing role.</li>
  <li>`member` - Name of the user or role that will be revoked membership in `role`. Must be an existing user or role.</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/revoke_role.rs#L64-L75)
pub async fn [revoke\_role\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/revoke-role.md#method.revoke_role_raw)( \&self, request: &[RevokeRoleRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[RevokeRoleResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`RevokeRoleRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleRequest) to the `/revoke/role` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/revoke_role.rs#L79-L91)
pub async fn [revoke\_role\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/revoke-role.md#method.revoke_role_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[RevokeRoleRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[RevokeRoleResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`RevokeRoleRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.RevokeRoleRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.