I want to fetch policy details of a particular user using rest api . I do want to get policies and then corresponding users to this , but in reverse way.
curl -u admin:admin -X GET http://<Ranger_hsot>:6080/service/public/api/policy
I have executed above rest api but it details policies and its all information but I wanted to get policy corresponding to user .
Basically if I pass user id or its name then when rest api is executed it should details its corresponding policy.
could some one please refer some rest api to achieve above requirement ?
What about search a policy by username:
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
In Apache Ranger 0.6 the path is:
If you want to get the result on a pretty json format you can do:
curl -u admin:admin -XGET $url | python -mjson.tool > output.json