View a markdown version of this page

EnableOrganizationLevelResources - AWS Identity and Access Management

EnableOrganizationLevelResources

Enables your organization to create organization-level resources. An organization-level resource is an IAM resource that your organization owns instead of an individual AWS account owning it.

Creating organization-level resources is an opt-in capability. Your organization cannot create organization-level resources until the management account enables the capability by calling this operation.

The organization-level resources that this capability governs include workload identity providers and workload identity templates that you create with a ResourceScope of ORGANIZATION. For more information, see CreateWorkloadIdentityProvider and CreateWorkloadIdentityTemplate.

This operation acts on the organization that the calling account belongs to. Only the management account of that organization can call this operation. A delegated administrator for IAM cannot call it.

Before you call this operation, your organization must be configured with the following settings:

  • You must manage your AWS accounts in AWS Organizations.

  • Your organization must have All features enabled. For more information, see Available feature sets in the AWS Organizations User Guide.

  • Enable trusted access for AWS Identity and Access Management in AWS Organizations. For details, see IAM and AWS Organizations in the AWS Organizations User Guide.

Response Elements

The following elements are returned by the service.

EnabledFeatures.member.N

The features that are enabled for your organization after this call. This is the organization's complete set of enabled features, not only the feature that you enabled.

Type: Array of strings

Valid Values: RootCredentialsManagement | RootSessions | OrganizationIamResources

OrganizationId

The unique identifier (ID) of the organization that the calling account belongs to.

Type: String

Length Constraints: Maximum length of 34.

Pattern: ^o-[a-z0-9]{10,32}$

Errors

For information about the errors that are common to all actions, see Common Error Types.

CallerIsNotManagementAccount

The request was rejected because the account making the request is not the management account for the organization.

HTTP Status Code: 400

OrganizationNotFound

The request was rejected because no organization is associated with your account.

HTTP Status Code: 400

OrganizationNotInAllFeaturesMode

The request was rejected because your organization does not have All features enabled. For more information, see Available feature sets in the AWS Organizations User Guide.

HTTP Status Code: 400

ServiceAccessNotEnabled

The request was rejected because trusted access is not enabled for IAM in AWS Organizations. For details, see IAM and AWS Organizations in the AWS Organizations User Guide.

HTTP Status Code: 400

ServiceFailure

The request processing has failed because of an unknown error, exception or failure.

HTTP Status Code: 500

Examples

Example – Enable organization-level resources

This example illustrates one usage of EnableOrganizationLevelResources.

Sample Request

https://iam.us-east-1.amazonaws.com/?Action=EnableOrganizationLevelResources &Version=2010-05-08 &AUTHPARAMS

Sample Response

<EnableOrganizationLevelResourcesResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <EnableOrganizationLevelResourcesResult> <OrganizationId>o-aa111bb222</OrganizationId> <EnabledFeatures> <member>RootCredentialsManagement</member> <member>RootSessions</member> <member>OrganizationIamResources</member> </EnabledFeatures> </EnableOrganizationLevelResourcesResult> <ResponseMetadata> <RequestId>4a93ceee-9966-11e1-b624-b1aEXAMPLE7c</RequestId> </ResponseMetadata> </EnableOrganizationLevelResourcesResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: