EnableSharingWithAwsOrganization - AWS RAM


Enables resource sharing within your organization in AWS Organizations. This operation creates a service-linked role called AWSServiceRoleForResourceAccessManager that has the IAM managed policy named AWSResourceAccessManagerServiceRolePolicy attached. This role permits AWS RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in the calling account's organization by specifying the organization ID, or all of the accounts in an organizational unit (OU) by specifying the OU ID. Until you enable sharing within the organization, you can specify only individual AWS accounts, or for supported resource types, IAM roles and users.

You must call this operation from an IAM role or user in the organization's management account.

Request Syntax

POST /enablesharingwithawsorganization HTTP/1.1

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "returnValue": boolean }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

Type: Boolean


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


The operation failed because the requested operation isn't permitted.

HTTP Status Code: 400


The operation failed because the service could not respond to the request due to an internal problem. Try again later.

HTTP Status Code: 500


The operation failed because the service isn't available. Try again later.

HTTP Status Code: 503

See Also

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