Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Set {USER} user in Ranger policy?

avatar
New Member

https://cwiki.apache.org/confluence/display/RANGER/Support+for+%24username+variable describes an interesting feature to automagically create dynamic rules for users, for instance a personal db for every users.

Question is: how can we set this in Ranger admin or API? I got the following answer while calling the API:

{"statusCode":1,"msgDesc":"{USER}: user does not exist. policy='test {USER}' service='INT1_hive'"}

1 ACCEPTED SOLUTION

avatar

which HDP version are you using because this feature is being supported in latest release only

and we can add it something like this in screenshot

15352-screen-shot-2017-05-12-at-34154-pm.png

View solution in original post

2 REPLIES 2

avatar

which HDP version are you using because this feature is being supported in latest release only

and we can add it something like this in screenshot

15352-screen-shot-2017-05-12-at-34154-pm.png

avatar
New Member

I'm using HDP 2.5.3.

But thanks I didn't pay attention to the version in the jira (https://issues.apache.org/jira/browse/RANGER-698). I'll upgrade then 🙂