[ 
https://issues.apache.org/jira/browse/RANGER-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17584383#comment-17584383
 ] 

Madhan Neethiraj commented on RANGER-3865:
------------------------------------------

{quote}Is this built to work with all plugins, or just hive?
{quote}
[~barbara]  - replacing of user attribute expressions in the mask value 
specified in Ranger policies works for all plugins.

> support for using user attributes in masking expressions
> --------------------------------------------------------
>
>                 Key: RANGER-3865
>                 URL: https://issues.apache.org/jira/browse/RANGER-3865
>             Project: Ranger
>          Issue Type: Improvement
>          Components: plugins
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>            Priority: Major
>             Fix For: 3.0.0, 2.4.0
>
>         Attachments: RANGER-3865.patch
>
>
> RANGER-3550 introduced support for referencing user attributes in row-filter 
> expressions.
> Extending use of user attributes in masking expressions can help address more 
> use cases, including the following:
> Restrict users to see email address of customers in user's country only; 
> email address of other customers must be masked:
> {code:java}
> CASE WHEN country = '${{USER.country}}' THEN {col} ELSE mask({col}) END{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to