Skip to main content

Mask tagged columns with a tag policy

A masking tag policy sets, for one tag, the mask type that each user, group, or service account gets. Use it when the same kind of sensitive data, such as phone numbers, is tagged in many tables.

Prerequisites​

Create the policy​

  1. In the left sidebar, select Data Security → Tag policies.
  2. Open the Masking tab, then select Create masking policy.
  3. Enter a Policy name.
  4. In Service binding, select the configured binding, for example tag.
  5. In Tag, select the tag.
  6. Optional: enter a Description that says what the policy is for.

The Tag list fills in after you select a Service binding. A tag that already has a masking policy shows · Policy of this type exists and an Open existing policy link.

Add masking rules​

Each policy starts with Rule 1 under Masking rules.

  1. Select who the rule is for in User, Group, or Service Account. Add at least one.
  2. In Mask type, keep NULL or select HASH or SHOW_LAST_4.
  3. To add another rule, select Add rule and repeat steps 1 and 2.

Create masking policy form with a tag and one rule with Mask type HASH

The Mask type list shows its choices only after you select a Service binding. To delete a rule, select Remove rule in that rule. A policy keeps at least one rule.

Turn the policy on​

  1. Select Active if the policy should apply as soon as you create it. Active is cleared by default.
  2. Select Create.

To leave without saving, select Cancel. You return to the Tag policies list and nothing is created.

Check the policy​

After Create, the portal opens the page of the new policy. On the Masking tab of Tag policies, the policy appears in the list. Status shows Active or Inactive, with a sync label under it.

The policy applies to queries within 10 minutes when the system works normally. To follow its progress, open the policy and read Sync status.

If an action fails​

What you seeWhat it meansWhat to do
A policy of this type already exists for this tag in this scope. at the top of the formThe tag already has a masking policy. Your entries are kept.Select Open existing policy and change that policy instead, or choose another tag.
No Create masking policy button.Your role can view tag policies but not change them.Ask your Admin for the policy_manager role, or a custom role with governance:tag_policies:write.

Next steps​