Check User Privilege

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:

ParametersDescriptionRequired
user_nameUser to check privilegeYes
Table 43 Check User Privilege (Restful API)