データ・ラベリングでクロス・テナンシ・ポリシーを設定するには、このステップに従います。
クロス・テナンシ・ポリシーを使用すると、リソースを別のテナンシのユーザーと共有できます。たとえば、ソース・テナント内のIAMグループのユーザーが宛先テナンシのデータセットに対して操作を実行できるようにするクロス・テナント・ポリシーを作成できます。クロス・テナンシ・ポリシーの詳細は、「テナンシをまたがったオブジェクト・ストレージ・リソースへのアクセス」を参照してください。
次の例では、テナンシsource-tenancy
内のグループgroup-name
のユーザーは、destination-tenancy
という別のテナンシでデータ・ラベリング機能を使用します。
-
source-tenancy
にグループを作成し、そのグループにユーザーを追加します。
-
group-name
が承認され、destination-tenancy
内のデータセットを管理できるように、source-tenancy
に次のポリシーを追加します。
DEFINE tenancy destination-tenancy AS <destination-tenancy-ocid>
ENDORSE group group-name TO manage data-labeling-family IN tenancy destination-tenancy
-
destination-tenancy
で、group-name
がデータセットを操作できるようにするポリシー・ステートメントを追加します:
DEFINE tenancy source-tenancy AS <source-tenancy-ocid>
DEFINE group group-name AS <source-tenancy-group-ocid>
ADMIT group group-name OF tenancy source-tenancy TO manage data-labeling-family IN tenancy
- (オプション)ポリシーを追加して、
destination-tenancy
内の特定のコンパートメントにアクセスを制限できます。この例では、コンパートメントはdataset-compartment
と呼ばれます:
DEFINE tenancy source-tenancy AS <source-tenancy-ocid>
DEFINE group group-name AS <source-tenancy-group-ocid>
ADMIT group group-name OF tenancy source-tenancy TO manage data-labeling-family IN compartment dataset-compartment
- (オプション)バケットが
destination-tenancy
に存在する場合は、オブジェクト・ストレージ・リソースにもクロステナンシ・ポリシーを追加する必要があります。次のポリシー・ステートメントを追加して、グループgroup-name
がdestination-tenancy
内のオブジェクト・ストレージ・リソースにアクセスできるようにします:
source-tenancy
で、次を追加します:
ENDORSE group group-name to read buckets in tenancy destination-tenancy
ENDORSE group group-name to manage objects in tenancy destination-tenancy
ENDORSE group group-name to read objectstorage-namespaces in tenancy destination-tenancy
destination-tenancy
で、次を追加します:
ADMIT group group-name of tenancy source-tenancy to read buckets in tenancy
ADMIT group group-name of tenancy source-tenancy to manage objects in tenancy
ADMIT group group-name of tenancy source-tenancy to read objectstorage-namespaces in tenancy