Source
pub async fn create_user_internal( &self, name: String, password: String, ) -> Result<CreateUserInternalResponse, KineticaError>
Create a new internal user
Creates a new internal user (a user whose credentials are managed by the database system).
name- Name of the user to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.password- Initial password of the user to be created. May be an empty string for no password.
Source
pub async fn create_user_internal_with_opts( &self, name: String, password: String, options: CreateUserInternalRequestOptions, ) -> Result<CreateUserInternalResponse, KineticaError>
Create a new internal user
Creates a new internal user (a user whose credentials are managed by the database system).
name- Name of the user to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.password- Initial password of the user to be created. May be an empty string for no password.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn create_user_internal_raw( &self, request: &CreateUserInternalRequest, ) -> Result<CreateUserInternalResponse, KineticaError>
Sends a pre-built CreateUserInternalRequest to the /create/user/internal endpoint.
Source
pub async fn create_user_internal_from_url( &self, url: &str, request: &CreateUserInternalRequest, ) -> Result<CreateUserInternalResponse, KineticaError>
Sends a pre-built CreateUserInternalRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.