Atlas tags with Attributes and Ranger Policy Conditions to secure your data
- If it is, the data will be available to the user to see in the clear. It is not, the users will not be able to see the data.

- We will add another row for hr_users like the following:
if ( ctx.getAttributeValue("Masked","groups").indexOf("hr_users") !== -1 )
{ ctx.result = false; } else { ctx.result = true; }
- When selecting the data with a power_users, the data is masked:


- When executing with hr_users, the data is displayed as un-masked:


- We can see for the power_users that the masked policy was applied to matching number 85:

To dig deeper into it what additional functions are available you could also review the source code in GIT.



