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
- Your role includes
governance:tag_policies:write. Theportal_adminandpolicy_managerroles have it. See Portal roles and permissions. - The tag exists and is confirmed on the columns you have in mind. See Add or remove a tag on a column.
- The users and groups already exist in Access management, and the service accounts already exist in Service Accounts.
Create the policy
- In the left sidebar, select Data Security → Tag policies.
- Open the Masking tab, then select Create masking policy.
- Enter a Policy name.
- In Service binding, select the configured binding, for example
tag. - In Tag, select the tag.
- 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.
- Select who the rule is for in User, Group, or Service Account. Add at least one.
- In Mask type, keep
NULLor selectHASHorSHOW_LAST_4. - To add another rule, select Add rule and repeat steps 1 and 2.

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
- Select Active if the policy should apply as soon as you create it. Active is cleared by default.
- 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 see | What it means | What to do |
|---|---|---|
A policy of this type already exists for this tag in this scope. at the top of the form | The 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. |