Source
pub async fn grant_permission_system( &self, name: String, permission: String, ) -> Result<GrantPermissionSystemResponse, KineticaError>
Grant a system-level permission to a user or role
[DEPRECATED–please use /grant/permission instead] Grants a system-level permission to a user or role.
name- Name of the user or role to which the permission will be granted. Must be an existing user or role.permission- Permission to grant to the user or role.
Source
pub async fn grant_permission_system_with_opts( &self, name: String, permission: String, options: GrantPermissionSystemRequestOptions, ) -> Result<GrantPermissionSystemResponse, KineticaError>
Grant a system-level permission to a user or role
[DEPRECATED–please use /grant/permission instead] Grants a system-level permission to a user or role.
name- Name of the user or role to which the permission will be granted. Must be an existing user or role.permission- Permission to grant to the user or role.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn grant_permission_system_raw( &self, request: &GrantPermissionSystemRequest, ) -> Result<GrantPermissionSystemResponse, KineticaError>
Sends a pre-built GrantPermissionSystemRequest to the /grant/permission/system endpoint.
Source
pub async fn grant_permission_system_from_url( &self, url: &str, request: &GrantPermissionSystemRequest, ) -> Result<GrantPermissionSystemResponse, KineticaError>
Sends a pre-built GrantPermissionSystemRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.