This chapter introduces how to check user privilege.
curl -u shiva:shiva -XGET "localhost:8902/hippo/v1/_security/user/_privileges/{username}?pretty"
Result:
{
"default#book" : {
"id" : "095a7024526c43f59c97994803906944",
"owner" : "melon",
"acl" : [
{
"role" : "melon",
"grantor" : "shiva",
"privileges" : [
{
"privilege" : "PRIV_ALL",
"with grant options" : true
}
]
}
]
}
}
Parameter description:
Parameters | Description | Required |
---|---|---|
user_name | User to check privilege | Yes |