You can translate the question and the replies:

Mask personally identifiable data for all except users in a specific role?

I am trying to implement fairly simple, and I would think a universal, masking on a single view. There are three columns in the view, containing name, address and ssn for customers and I want to mask them for all users except a chosen fiew. What I have done is * create a tag called "personally_identifiable_data" * add the tag to the three columns * create a role called p_i_d * added a single user to that role When it comes to creating the policy it gets tricky. A pseudocode for the policy would be "for all views in all databases mask the columns tagged with personally_identifiable_data except unless user is in role p_i_d". This all sounds simple enough but I have not found a good solution for this as users can be in many roles and I don't want to have to check all policies when a new role is added etc. In the age of GDPR and such I would like this to be simple but .... If anyone has done something similar I would appreciate a hint. I am using Denodo 8.
user
01-06-2023 13:29:27 -0400
code

1 Answer

Greetings , Hope you are doing well. This depends mainly on the security model and policies implemented in your organization. Since different data layers are normally managed by different users; therefore, roles need to be controlled carefully to implement enough segregation of duties. In this case, several best practices can be implemented such as defining [roles](https://community.denodo.com/docs/html/browse/latest/en/vdp/administration/databases_users_and_access_rights_in_virtual_dataport/user_and_access_right_in_virtual_dataport/user_and_access_right_in_virtual_dataport#roles) with only needed permissions, implementing multiple global security policies with limited indirect access as well as developing appropriate [custom view policies](https://community.denodo.com/docs/html/browse/8.0/en/vdp/developer/custom_policies/developing_a_custom_policy). For more detailed information, the following KB article describes the[ best practices in designing fine-grained privileges](https://community.denodo.com/kb/en/view/document/Best practices in designing fine-grained privileges in multi-layered virtual models). Hope this helps !
Denodo Team
04-06-2023 10:04:57 -0400
code
You must sign in to add an answer. If you do not have an account, you can register here