tag policy の概要
tag policy を使うと、アクセスやマスキングの rule を、テーブルごとではなく PII.Email などの tag に対して 1 回だけ設定できます。同じ種類の機密データが多くのテーブルに含まれている場合は、tag policy を使ってください。
resource policy と tag policy
Data Security の policy には 2 種類あり、それぞれ左サイドバーの Data Security の下に専用のページがあります。
| Resource policies | Tag policies | |
|---|---|---|
| メニュー | Data Security → Resource policies | Data Security → Tag policies |
| 選択する対象 | Catalog、Schema、テーブル、関数、またはカラム | tag |
| タブ | Access、Masking、Row level filter | Access、Masking |
resource policy については、Data Security の概要を参照してください。

アクセス tag policy とマスキング tag policy
Tag policies ページには、種類ごとにタブがあります。
- アクセス tag policy には、アクセス rule を設定します。各 rule では、ユーザー、グループ、または Service Account と、Effect (Allow または Deny)、Privileges を指定します。Privileges には、データを読み取る権限 (
select) などがあります。 - マスキング tag policy には、マスキング rule を設定します。各 rule では、ユーザー、グループ、または Service Account と、Mask type (
NULL、HASH、SHOW_LAST_4のいずれか) を指定します。
1 つの policy には複数の rule を設定できます。たとえば、アナリスト用に 1 つ、Service Account 用に 1 つといった構成です。
tag policy の対象になるカラム
tag policy の対象は、その tag が Confirmed になっているカラムです。つまり、手動で追加された tag と、承認された提案です。分類スキャンの提案のうち、まだ誰もレビューしていないものは使われません。
- policy のフォームには、Catalog、Schema、テーブル、カラムのフィールドはありません。Service binding と Tag を選択します。
- binding を選択すると、フィールドの下の注記に Lakehouse のクエリサービス名が表示されます。policy は、このサービスの tag 付きカラムに影響する可能性があります。
- tag が付いているカラムを確認するには、Tagging → Tags で tag を開き、Assets タブを選択します。
tag が確定する仕組みについては、Tagging の概要を参照してください。
変更が反映されるタイミング
新規作成または変更した tag policy は、システムが正常に動作している場合、10 分以内にクエリに適用されます。カラムで tag が確定した後も、同じタイミングで適用されます。
各 policy のページには Sync status セクションがあり、Changes can take up to 10 minutes to apply. という注記と Refresh ボタンが表示されます。同期ラベルは、Sync pending、Verified、Unverified、Sync error のいずれかです。Unverified の場合は、Sync has exceeded the 10-minute target という注記が表示されます。
tag の名前を変更または削除した場合
Tagging で tag の名前を変更または削除すると、ポータルに次の警告が表示されます。
Policies that use this tag may stop applying after it is renamed or deleted. They are not updated or removed automatically and may apply again if the tag name is reused. Deleting a tag does not by itself confirm that column mappings or enforcement have been removed; check synchronization before relying on a change.
各 tag policy のページにも、次の注記が表示されます。
Tag changes do not update this policy automatically. After a rename, edit the policy to use the current tag name. After deletion, you can still disable or delete the policy, or discard its saved changes.
tag policy を管理できるユーザー
| 権限 | できること | デフォルトでこの権限を持つ role |
|---|---|---|
governance:tag_policies:read | Tag policies、policy 一覧、policy の詳細を開く。 | portal_admin、policy_manager |
governance:tag_policies:write | tag policy を作成、編集、有効化または無効化、削除する。表示する権限も含まれます。 | portal_admin、policy_manager |
カスタム role にこれらの権限が付くのは、Admin が追加した場合だけです。tagging:manage 権限やテーブル内のデータへのアクセス権には、これらの権限は含まれません。ポータルの role と権限を参照してください。