Updated on 2024-10-24 GMT+08:00

Organizations

The Organizations service provides Service Control Policies to set access control policies.

SCPs do not actually grant any permissions to a principal. They only set the permissions boundary for the principal. When SCPs are attached to a member account or an organizational unit (OU), they do not directly grant permissions to that member account or OU. Instead, the SCPs just determine what permissions are available for that member account or the member accounts under that OU.

This section describes the elements used by Organizations SCPs. The elements include actions, resources, and conditions.

For details about how to use these elements to create a custom SCP, see Creating an SCP.

Actions

Actions are specific operations that are allowed or denied in an SCP.

  • The Access Level column describes how the action is classified (such as list, read, or write). This classification helps you understand the level of access that an action grants when you use it in an SCP.
  • The Resource Type column indicates whether the action supports resource-level permissions.
    • You can use a wildcard (*) to indicate all resource types. If this column is empty (-), the action does not support resource-level permissions, and you must specify all resources ("*") in your SCP statements.
    • If this column includes a resource type, you must specify the URN in the Resource element of your statements.
    • Required resources are marked with asterisks (*) in the table. If you specify a resource in a statement using this action, then it must be of this type.

    For details about the resource types defined by Organizations, see Resources.

  • The Condition Key column includes keys that you can specify in the Condition element of an SCP statement.
    • If the Resource Type column has values for an action, the condition key takes effect only for the listed resource types.
    • If the Resource Type column is empty (-) for an action, the condition key takes effect for all resources that action supports.
    • If the Condition Key column of an action is empty (-), the action does not support any condition keys.

    For details about the condition keys defined by Organizations, see Conditions.

The following table lists the actions that you can define in SCP statements for Organizations.

Table 1 Actions supported by Organizations

Action

Description

Access Level

Resource Type (*: required)

Condition Key

organizations:organizations:create

Grants permission to create an organization.

write

-

-

organizations:organizations:get

Grants permission to get organization information.

read

-

-

organizations:organizations:delete

Grants permission to delete an organization.

write

-

-

organizations:organizations:leave

Grants permission to leave the current organization.

write

-

-

organizations:roots:list

Grants permission to list the root of an organization.

list

-

-

organizations:ous:create

Grants permission to create an OU.

write

ou

g:ResourceTag/<tag-key>

root

g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

organizations:ous:list

Grants permission to list OUs.

list

-

-

organizations:ous:get

Grants permission to get OU information.

read

ou *

g:ResourceTag/<tag-key>

organizations:ous:update

Grants permission to rename an OU.

write

ou *

g:ResourceTag/<tag-key>

organizations:ous:delete

Grants permission to delete an OU.

write

ou *

g:ResourceTag/<tag-key>

organizations:accounts:create

Grants permission to create an account.

write

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

organizations:accounts:list

Grants permission to list accounts in an organization.

list

-

-

organizations:accounts:get

Grants permission to get account information.

read

account *

g:ResourceTag/<tag-key>

organizations:accounts:remove

Grants permission to remove the specified account.

write

account *

g:ResourceTag/<tag-key>

organizations:accounts:move

Grants permission to move an account.

write

account *

g:ResourceTag/<tag-key>

organizations:accounts:invite

Grants permission to invite an account to join an organization.

write

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

organizations:createAccountStatuses:list

Grants permission to list the account creation status.

list

-

-

organizations:createAccountStatuses:get

Grants permission to get information about the account creation status.

read

-

-

organizations:handshakes:get

Grants permission to get invitation information.

read

handshake *

-

organizations:handshakes:accept

Grants permission to accept an invitation.

write

handshake *

-

organizations:handshakes:decline

Grants permission to reject an invitation.

write

handshake *

-

organizations:handshakes:cancel

Grants permission to cancel an invitation.

write

handshake *

-

organizations:receivedHandshakes:list

Grants permission to list received invitations.

list

-

-

organizations:handshakes:list

Grants permission to list sent invitations.

list

-

-

organizations:trustedServices:enable

Grants permission to enable a trusted service.

write

-

organizations:ServicePrincipal

organizations:trustedServices:disable

Grants permission to disable a trusted service.

write

-

organizations:ServicePrincipal

organizations:trustedServices:list

Grants permission to list trusted services.

list

-

-

organizations:delegatedAdministrators:register

Grants permission to register a delegated administrator.

write

account *

g:ResourceTag/<tag-key>

-

organizations:ServicePrincipal

organizations:delegatedAdministrators:deregister

Grants permission to deregister a delegated administrator.

write

account *

g:ResourceTag/<tag-key>

-

organizations:ServicePrincipal

organizations:delegatedServices:list

Grants permission to list services managed by a delegated administrator account.

list

account *

g:ResourceTag/<tag-key>

organizations:delegatedAdministrators:list

Grants permission to list delegated administrator accounts.

list

-

organizations:ServicePrincipal

organizations:policies:create

Grants permission to create a policy.

write

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

organizations:policies:list

Grants permission to list policies.

list

-

-

organizations:policies:get

Grants permission to get policy information.

read

policy *

g:ResourceTag/<tag-key>

organizations:policies:update

Grants permission to update a policy.

write

policy *

g:ResourceTag/<tag-key>

organizations:policies:delete

Grants permission to delete a policy.

write

policy *

g:ResourceTag/<tag-key>

organizations:policies:enable

Grants permission to enable a policy type for a root.

write

root *

g:ResourceTag/<tag-key>

organizations:policies:disable

Grants permission to disable a policy type for a root.

write

root *

g:ResourceTag/<tag-key>

organizations:policies:attach

Grants permission to attach a policy to a principal.

write

policy *

g:ResourceTag/<tag-key>

account

g:ResourceTag/<tag-key>

ou

g:ResourceTag/<tag-key>

root

g:ResourceTag/<tag-key>

organizations:policies:detach

Grants permission to detach a policy from a principal.

write

policy *

g:ResourceTag/<tag-key>

account

g:ResourceTag/<tag-key>

ou

g:ResourceTag/<tag-key>

root

g:ResourceTag/<tag-key>

organizations:attachedEntities:list

Grants permission to list entities for the specified policy.

list

policy *

g:ResourceTag/<tag-key>

organizations:tags:list

Grants permission to list tags attached to the specified resource.

list

account

g:ResourceTag/<tag-key>

ou

g:ResourceTag/<tag-key>

root

g:ResourceTag/<tag-key>

policy

g:ResourceTag/<tag-key>

organizations:resources:tag

Grants permission to tag the specified resource.

tagging

account

g:ResourceTag/<tag-key>

ou

g:ResourceTag/<tag-key>

root

g:ResourceTag/<tag-key>

policy

g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

organizations:resources:untag

Grants permission to untag the specified resource.

tagging

account

g:ResourceTag/<tag-key>

ou

g:ResourceTag/<tag-key>

root

g:ResourceTag/<tag-key>

policy

g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

organizations:entities:list

Grants permission to list entities in an organization.

list

-

-

organizations:services:list

Grants permission to list cloud services integrable with Organizations.

list

-

-

organizations:tagPolicyServices:list

Grants permission to list the resource types that support tag policy enforcement.

list

-

-

organizations:effectivePolicies:get

Grants permission to get the effective policy of a specified type.

read

-

-

organizations:resources:listByTag

Grants permission to list instances by resource type and tag.

list

-

-

organizations:resources:countByTag

Grants permission to list the number of instances by resource type and tag.

list

-

-

organizations:resources:list

Grants permission to list project tags.

list

-

-

organizations:quotas:list

Grants permission to list organization quotas.

list

-

-

Each API of Organizations usually supports one or more actions. Table 2 lists the supported actions and dependencies.

Table 2 Actions and dependencies supported by Organizations APIs

API

Action

Dependencies

POST /v1/organizations

organizations:organizations:create

iam:agencies:createServiceLinkedAgency

GET /v1/organizations

organizations:organizations:get

-

DELETE /v1/organizations

organizations:organizations:delete

-

POST /v1/organizations/leave

organizations:organizations:leave

-

GET /v1/organizations/roots

organizations:roots:list

-

POST /v1/organizations/organizational-units

organizations:ous:create

organizations:resources:tag

GET /v1/organizations/organizational-units

organizations:ous:list

-

GET /v1/organizations/organizational-units/{organizational_unit_id}

organizations:ous:get

-

PATCH /v1/organizations/organizational-units/{organizational_unit_id}

organizations:ous:update

-

DELETE /v1/organizations/organizational-units/{organizational_unit_id}

organizations:ous:delete

-

POST /v1/organizations/accounts

organizations:accounts:create

organizations:resources:tag

GET /v1/organizations/accounts

organizations:accounts:list

-

GET /v1/organizations/accounts/{account_id}

organizations:accounts:get

-

POST /v1/organizations/accounts/{account_id}/remove

organizations:accounts:remove

-

POST /v1/organizations/accounts/{account_id}/move

organizations:accounts:move

-

POST /v1/organizations/accounts/invite

organizations:accounts:invite

organizations:resources:tag

GET /v1/organizations/create-account-status

organizations:createAccountStatuses:list

-

GET /v1/organizations/create-account-status/{create_account_status_id}

organizations:createAccountStatuses:get

-

GET /v1/organizations/handshakes/{handshake_id}

organizations:handshakes:get

-

POST /v1/received-handshakes/{handshake_id}/accept

organizations:handshakes:accept

iam:agencies:createServiceLinkedAgency

POST /v1/received-handshakes/{handshake_id}/decline

organizations:handshakes:decline

-

POST /v1/organizations/handshakes/{handshake_id}/cancel

organizations:handshakes:cancel

-

GET /v1/received-handshakes

organizations:receivedHandshakes:list

-

GET /v1/organizations/handshakes

organizations:handshakes:list

-

POST /v1/organizations/trusted-services/enable

organizations:trustedServices:enable

-

POST /v1/organizations/trusted-services/disable

organizations:trustedServices:disable

-

GET /v1/organizations/trusted-services

organizations:trustedServices:list

-

POST /v1/organizations/delegated-administrators/register

organizations:delegatedAdministrators:register

-

POST /v1/organizations/delegated-administrators/deregister

organizations:delegatedAdministrators:deregister

-

GET /v1/organizations/accounts/{account_id}/delegated-services

organizations:delegatedServices:list

-

GET /v1/organizations/delegated-administrators

organizations:delegatedAdministrators:list

-

POST /v1/organizations/policies

organizations:policies:create

organizations:resources:tag

GET /v1/organizations/policies

organizations:policies:list

-

GET /v1/organizations/policies/{policy_id}

organizations:policies:get

-

PATCH /v1/organizations/policies/{policy_id}

organizations:policies:update

-

DELETE /v1/organizations/policies/{policy_id}

organizations:policies:delete

-

POST /v1/organizations/policies/enable

organizations:policies:enable

-

POST /v1/organizations/policies/disable

organizations:policies:disable

-

POST /v1/organizations/policies/{policy_id}/attach

organizations:policies:attach

-

POST /v1/organizations/policies/{policy_id}/detach

organizations:policies:detach

-

GET /v1/organizations/policies/{policy_id}/attached-entities

organizations:attachedEntities:list

-

GET /v1/organizations/resources/{resource_id}/tags

organizations:tags:list

-

POST /v1/organizations/resources/{resource_id}/tag

organizations:resources:tag

-

POST /v1/organizations/resources/{resource_id}/untag

organizations:resources:untag

-

GET /v1/organizations/entities

organizations:entities:list

-

GET /v1/organizations/services

organizations:services:list

-

GET /v1/organizations/tag-policy-services

organizations:tagPolicyServices:list

-

GET /v1/organizations/entities/effective-policies

organizations:effectivePolicies:get

-

GET /v1/organizations/{resource_type}/{resource_id}/tags

organizations:tags:list

-

POST /v1/organizations/{resource_type}/{resource_id}/tags/create

organizations:resources:tag

-

POST /v1/organizations/{resource_type}/{resource_id}/tags/delete

organizations:resources:untag

-

POST /v1/organizations/{resource_type}/resource-instances/filter

organizations:resources:listByTag

-

POST /v1/organizations/{resource_type}/resource-instances/count

organizations:resources:countByTag

-

GET /v1/organizations/{resource_type}/tags

organizations:resources:list

-

GET /v1/organizations/quotas

organizations:quotas:list

-

Resources

A resource type indicates the resources that an SCP applies to. If you specify a resource type for any action in Table 3, the resource URN must be specified in the SCP statements using that action, and the SCP applies only to resources of this type. If no resource type is specified, the Resource element is marked with an asterisk (*) and the SCP applies to all resources. You can also set condition keys in an SCP to define resource types.

The following table lists the resource types that you can define in SCP statements for Organizations.

Table 3 Resource types supported by Organizations

Resource Type

URN

handshake

organizations::<management-account-id>:handshake:<organization-id>/<handshake-id>

ou

organizations::<management-account-id>:ou:<organization-id>/<organization-unit-id>

organization

organizations::<management-account-id>:organization:<organization-id>

root

organizations::<management-account-id>:root:<organization-id>/<root-id>

account

organizations::<management-account-id>:account:<organization-id>/<account-id>

policy

organizations::<management-account-id>:policy:<organization-id>/<policy-type>/<policy-id>

builtinpolicy

organizations::system:policy:<policy-type>/<policy-id>

Conditions

A Condition element lets you specify conditions for when an SCP is in effect. It contains condition keys and operators.

  • The condition key that you specify can be a global condition key or a service-specific condition key.
    • Global condition keys (with the g: prefix) apply to all actions. Cloud services do not need to provide user identity information. Instead, the system automatically obtains such information and authenticates users. For details, see Global Condition Keys.
    • Service-specific condition keys (with the abbreviation of a service name plus a colon as the prefix, for example, organizations:) only apply to operations of the Organizations service. For details, see Table 4.
    • The number of values associated with a condition key in the request context of an API call makes the condition key single-valued or multivalued. Single-valued condition keys have at most one value in the request context of an API call. Multivalued condition keys can have multiple values in the request context of an API call. For example, a request can originate from at most one VPC endpoint, so g:SourceVpce is a single-valued condition key. You can tag resources and include multiple tag key-value pairs in a request, so g:TagKeys is a multivalued condition key.
  • A condition operator, condition key, and a condition value together constitute a complete condition statement. An SCP can be applied only when its request conditions are met. For supported condition operators, see Condition operators.

The following table lists the condition keys that you can define in SCPs for Organizations. You can include these condition keys to specify conditions for when your SCP is in effect.

Table 4 Service-specific condition keys supported by Organizations

Service-specific Condition Key

Type

Single-valued/Multivalued

Description

organizations:ServicePrincipal

string

Single-valued

Filters access based on the name of the specified service principal