This chapter introduces how to create user in Hippo.
curl -u shiva:shiva -XPUT localhost:8902/hippo/v1/_security/user/{user_name}?pretty -H 'Content-Type: application/json' -d '{
"password" : "<password>",
"metadata" : {
"is_super" : false,
"can_create_role": false,
"can_create_db": false
}
}';
Result:
{
"user" : {
"created" : true
},
"created" : true
}
Parameter description:
Parameters | Description | Options |
---|---|---|
user_name | New username | |
password | New password | |
is_super | Whether this user is superuser | True/False |
can_create_role | Whether this user can create role | True/False |
can_create_db | Whether this user can create database | True/False |