Alter User

This chapter introduces how to alter the property of the user.

curl -u shiva:shiva -XPOST localhost:8902/hippo/v1/_security/user/{user_name}/_alter?pretty -H 'Content-Type: application/json' -d '{
  "password" : "<password>",
  "metadata" : {
    "is_super" : false,
    "can_create_role": false,
    "can_create_db": false
  }
}';

Result:

{
  "acknowledged" : true
}

Parameter description:

The parameters used when altering user are the same as the ones used during user creation.