singlestoredb.management.cluster.StarterCluster.create_user

StarterCluster.create_user(username: str, password: str | None = None) → Dict[str, str]

Create a new user for this starter cluster.

Parameters:
  • username (str) – The user name to connect the new user to the database

  • password (str, optional) – Password for the new user. If not provided, a password will be auto-generated by the system.

Returns:

Dictionary containing ‘user_id’ and ‘password’ of the created user

Return type:

Dict[str, str]

Raises:

ManagementError – If no cluster manager is associated with this object