SecurityHub / Client / enable_organization_admin_account

enable_organization_admin_account

SecurityHub.Client.enable_organization_admin_account(**kwargs)

Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.

See also: AWS API Documentation

Request Syntax

response = client.enable_organization_admin_account(
    AdminAccountId='string',
    Feature='SecurityHub'|'SecurityHubV2'
)
Parameters:
  • AdminAccountId (string) –

    [REQUIRED]

    The Amazon Web Services account identifier of the account to designate as the Security Hub administrator account.

  • Feature (string) – The feature for which the delegated admin account is enabled. Defaults to Security Hub if not specified.

Return type:

dict

Returns:

Response Syntax

{
    'AdminAccountId': 'string',
    'Feature': 'SecurityHub'|'SecurityHubV2'
}

Response Structure

  • (dict) –

    • AdminAccountId (string) –

      The Amazon Web Services account identifier of the account to designate as the Security Hub administrator account.

    • Feature (string) –

      The feature where the delegated administrator is enabled. The default is Security Hub CSPM if no delegated administrator is specified in the request.

Exceptions