Source
pub async fn has_permission( &self, principal: String, object: String, object_type: String, permission: String, ) -> Result<HasPermissionResponse, KineticaError>
Check if user has specified permission on the specified object
Checks if the specified user has the specified permission on the specified object.
principal- Name of the user for which the permission is being checked. Must be an existing user. If blank, will use the current user.object- Name of object to check for the requested permission. It is recommended to use a fully-qualified name when possible.object_type- The type of object being checked.permission- Permission to check for.
Source
pub async fn has_permission_with_opts( &self, principal: String, object: String, object_type: String, permission: String, options: HasPermissionRequestOptions, ) -> Result<HasPermissionResponse, KineticaError>
Check if user has specified permission on the specified object
Checks if the specified user has the specified permission on the specified object.
principal- Name of the user for which the permission is being checked. Must be an existing user. If blank, will use the current user.object- Name of object to check for the requested permission. It is recommended to use a fully-qualified name when possible.object_type- The type of object being checked.permission- Permission to check for.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn has_permission_raw( &self, request: &HasPermissionRequest, ) -> Result<HasPermissionResponse, KineticaError>
Sends a pre-built HasPermissionRequest to the /has/permission endpoint.
Source
pub async fn has_permission_from_url( &self, url: &str, request: &HasPermissionRequest, ) -> Result<HasPermissionResponse, KineticaError>
Sends a pre-built HasPermissionRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.