Check User

This chapter introduces how to check current user Hippo has.

curl -u shiva:shiva -XGET localhost:8902/hippo/v1/_security/user/{user_name}?pretty

Result:

{
  "public" : {
    "id" : "00000000000000000000000000000000",
    "is super" : false,
    "permit to create role" : false,
    "permit to create db" : false,
    "cant login" : false,
    "create date time" : "2023-05-22 17:05:37"
  },
  "shiva" : {
    "id" : "5f08847d6bc44c7daf9928b4ebe9443c",
    "is super" : true,
    "permit to create role" : true,
    "permit to create db" : true,
    "cant login" : true,
    "create date time" : "2023-05-22 17:05:37"
  },
  "melon" : {
    "id" : "c95316b8414e4821b235173560bc85c5",
    "is super" : false,
    "permit to create role" : false,
    "permit to create db" : false,
    "cant login" : true,
    "create date time" : "2023-05-22 17:07:28"
  }
}

Parameter description:

ParametersDescriptionRequired
user_nameSupports using asterisk (*) wildcard characterNo, defaults to *, returns all users
Table 40 Check User (Restful API)