Skip to main content

delegated_administrators

Creates, updates, deletes, gets or lists a delegated_administrators resource.

Overview

Namedelegated_administrators
TypeResource
Idaws.organizations.delegated_administrators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the delegated administrator's account. (pattern: <code>^arn:aws:organizations::\d{12}:account/o-[a-z0-9]{10,32}/\d{12}</code>)
delegation_enabled_datestring (date-time)The date when the account was made a delegated administrator.
emailstringThe email address that is associated with the delegated administrator's Amazon Web Services account. (pattern: <code>[^\s@]+@[^\s@]+.[^\s@]+</code>)
idstringThe unique identifier (ID) of the delegated administrator's account. (pattern: <code>^\d{12}$</code>)
joined_methodstringThe method by which the delegated administrator's account joined the organization. (INVITED, CREATED)
joined_timestampstring (date-time)The date when the delegated administrator's account became a part of the organization.
namestringThe friendly name of the delegated administrator's account. (pattern: <code>[\s\S]*</code>)
statestringEach state represents a specific phase in the account lifecycle. Use this information to manage account access, automate workflows, or trigger actions based on account state changes. For more information about account states and their implications, see Monitor the state of your Amazon Web Services accounts in the Organizations User Guide. (PENDING_ACTIVATION, ACTIVE, SUSPENDED, PENDING_CLOSURE, CLOSED)
statusstringThe status of the delegated administrator's account in the organization. (ACTIVE, SUSPENDED, PENDING_CLOSURE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_delegated_administratorsselectregionLists the Amazon Web Services accounts that are designated as delegated administrators in this organization. You can only call this operation from the management account or a member account that is a delegated administrator.
register_delegated_administratorinsertregion, AccountId, ServicePrincipalEnables the specified member account to administer the Organizations features of the specified Amazon Web Services service. It grants read-only access to Organizations service data. The account still requires IAM permissions to access and administer the Amazon Web Services service. You can run this action only for Amazon Web Services services that support this feature. For a current list of services that support it, see the column Supports Delegated Administrator in the table at Amazon Web Services Services that you can use with Organizations in the Organizations User Guide. You can only call this operation from the management account.
deregister_delegated_administratordeleteregionRemoves the specified member Amazon Web Services account as a delegated administrator for the specified Amazon Web Services service. Deregistering a delegated administrator can have unintended impacts on the functionality of the enabled Amazon Web Services service. See the documentation for the enabled service before you deregister a delegated administrator so that you understand any potential impacts. You can run this action only for Amazon Web Services services that support this feature. For a current list of services that support it, see the column Supports Delegated Administrator in the table at Amazon Web Services Services that you can use with Organizations in the Organizations User Guide. You can only call this operation from the management account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists the Amazon Web Services accounts that are designated as delegated administrators in this organization. You can only call this operation from the management account or a member account that is a delegated administrator.

SELECT
arn,
delegation_enabled_date,
email,
id,
joined_method,
joined_timestamp,
name,
state,
status
FROM aws.organizations.delegated_administrators
WHERE region = '{{ region }}' -- required
;

INSERT examples

Enables the specified member account to administer the Organizations features of the specified Amazon Web Services service. It grants read-only access to Organizations service data. The account still requires IAM permissions to access and administer the Amazon Web Services service. You can run this action only for Amazon Web Services services that support this feature. For a current list of services that support it, see the column Supports Delegated Administrator in the table at Amazon Web Services Services that you can use with Organizations in the Organizations User Guide. You can only call this operation from the management account.

INSERT INTO aws.organizations.delegated_administrators (
AccountId,
ServicePrincipal,
region
)
SELECT
'{{ AccountId }}' /* required */,
'{{ ServicePrincipal }}' /* required */,
'{{ region }}'
;

DELETE examples

Removes the specified member Amazon Web Services account as a delegated administrator for the specified Amazon Web Services service. Deregistering a delegated administrator can have unintended impacts on the functionality of the enabled Amazon Web Services service. See the documentation for the enabled service before you deregister a delegated administrator so that you understand any potential impacts. You can run this action only for Amazon Web Services services that support this feature. For a current list of services that support it, see the column Supports Delegated Administrator in the table at Amazon Web Services Services that you can use with Organizations in the Organizations User Guide. You can only call this operation from the management account.

DELETE FROM aws.organizations.delegated_administrators
WHERE region = '{{ region }}' --required
;