Support Questions
Find answers, ask questions, and share your expertise

rest api to add user into existing ranger policy

rest api to add user into existing ranger policy

I want to add user into ranger's policy whether it is hdfs , hive or hbase .

is there some rest api, I can execute the same and could add user into existing policy ?

Note : I am concerned after execution of rest api , user would not be overriding on all existing users , It should only addend the new user into policy .

2 REPLIES 2
Highlighted

Re: rest api to add user into existing ranger policy

You can first get the policy and add your changes and update the policy.

Refer below links for REST API documentation.

https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Service+Definition%2C+Service+and+P...

http://ranger.apache.org/apidocs/index.html

Highlighted

Re: rest api to add user into existing ranger policy

@vperiasamy

Hi thanks ,

Can you please suggest some rest api which directly append the user to particular policy for e.g. hdfs under some policy name .