Skip to main content
Source

pub async fn grant_permission_table( &self, name: String, permission: String, table_name: String, filter_expression: String, ) -> Result<GrantPermissionTableResponse, KineticaError>

Grant a table-level permission to a user or role

[DEPRECATED–please use /grant/permission instead] Grants a table-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.
  • table_name - Name of the table to which the permission grants access, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table, view, or schema. If a schema, the permission also applies to tables and views in the schema.
  • filter_expression - Optional filter expression to apply to this grant. Only rows that match the filter will be affected.
Source

pub async fn grant_permission_table_with_opts( &self, name: String, permission: String, table_name: String, filter_expression: String, options: GrantPermissionTableRequestOptions, ) -> Result<GrantPermissionTableResponse, KineticaError>

Grant a table-level permission to a user or role

[DEPRECATED–please use /grant/permission instead] Grants a table-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.
  • table_name - Name of the table to which the permission grants access, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table, view, or schema. If a schema, the permission also applies to tables and views in the schema.
  • filter_expression - Optional filter expression to apply to this grant. Only rows that match the filter will be affected.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built GrantPermissionTableRequest to the /grant/permission/table endpoint.

Sends a pre-built GrantPermissionTableRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.