Add a column masking policy to restrict users from accessing sensitive data. Users can
view data only in masked format.
watsonx.data on IBM Software
Hub
Procedure
- Complete the following steps.
-
-
- Log in to Apache Ranger by using the username and password.
- Go to Service Manager > service_name
policies page to add a masking policy.
- In the Policy Details section, provide the policy details like name,
description.
- In the Resources section, select the catalog, schema, table, and column
for which the policy is applicable.
- In the Masking Conditions section, select the user (example,
User1), set the Permissions to
Select, set the Select Masking Option to
Custom and enter the masked value as xxx.
- Click Save.
- Complete the following steps to verify access control:
-
-
- Log in to watsonx.data instance as
User1.
- From the navigation menu, click Query workspace.
- Run a simple query to access the table again, now User1 view see the
sensitive data in masked format (xxx) in the target column in the result.