Skip to content

List Organization Admin Accounts

securityhub_list_organization_admin_accounts R Documentation

Lists the Security Hub administrator accounts

Description

Lists the Security Hub administrator accounts. Can only be called by the organization management account.

Usage

securityhub_list_organization_admin_accounts(MaxResults, NextToken)

Arguments

MaxResults

The maximum number of items to return in the response.

NextToken

The token that is required for pagination. On your first call to the list_organization_admin_accounts operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

Value

A list with the following syntax:

list(
  AdminAccounts = list(
    list(
      AccountId = "string",
      Status = "ENABLED"|"DISABLE_IN_PROGRESS"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_organization_admin_accounts(
  MaxResults = 123,
  NextToken = "string"
)

Examples

## Not run: 
# The following example lists the Security  Hub administrator accounts for
# an organization. Only the organization management account can call this
# operation.
svc$list_organization_admin_accounts()

## End(Not run)