Create User

user_created = hc.create_user(
    user_name = "test_user",
    pwd = "password123"


This method returns a Boolean value to represent whether this operation is successful. If the error pops up when creating user, “ValueError” exception will be raised.

Parameter description:

user_name (str)New usernameYes
password (str)New passwordYes
is_super (bool)Whether this user is superuserNo, defaults to False
can_create_role (bool)Whether this user can create roleNo, defaults to False
can_create_db (bool)Whether this user can create databaseNo, defaults to False
Table 85 Create User (Python API)