Create User

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:

ParametersDescriptionOptions
user_nameNew username
passwordNew password
is_superWhether this user is superuserTrue/False
can_create_roleWhether this user can create roleTrue/False
can_create_dbWhether this user can create databaseTrue/False
Table 39 Create User (Restful API)