Create Identity and Access Management (IAM) policies to control who has access to Oracle Cloud Migrations (OCM) resources, and to control the type of access for each group of users.
By default, users in the Administrators group have access to all the Oracle Cloud Migrations resources. If you are new to IAM policies, see
Getting Started with Policies.
Variables are lowercase and hyphen-separated. For example,
target.tag-namespace.name, target.display-name. Here
name must be unique, and display-name is the
description.
Required variables are supplied by the Migration service for every request. Automatic
variables are supplied by the authorization engine (either service-local with the SDK for a
thick client, or on the Identity data plane for a thin client).
Required Variables
Type
Description
target.compartment.id
Entity (OCID)
The OCID of the primary resource for the request.
request.operation
String
The operation ID (for example, GetUser) for the
request.
target.resource.kind
String
The resource kind name of the primary resource for the request.
Automatic Variables
Type
Description
request.user.id
Entity (OCID)
The OCID of the requesting user.
request.groups.id
List of entities (OCIDs)
The OCIDs of the groups the requesting user is in.
target.compartment.name
String
The name of the compartment specified in
target.compartment.id.
target.tenant.id
Entity (OCID)
The OCID of the target tenant ID.
Dynamic Variables
Type
Description
request.principal.group.tag.<tagNS>.<tagKey>
String
The value of each tag on a group of which the principal is a member.
The value of each tag on the compartment that contains the principal.
target.resource.tag.<tagNS>.<tagKey>
String
The value of each tag on the target resource. The variable is computed based on
tagSlug supplied by service on each request.
target.resource.compartment.tag.<tagNS>.<tagKey>
String
The value of each tag on the compartment that contains the target resource. The
variable is computed based on tagSlug supplied by service on each request.