:doc:`SecurityHub <../../securityhub>` / Client / list_organization_admin_accounts

********************************
list_organization_admin_accounts
********************************



.. py:method:: SecurityHub.Client.list_organization_admin_accounts(**kwargs)

  

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListOrganizationAdminAccounts>`_  


  **Request Syntax**
  ::

    response = client.list_organization_admin_accounts(
        MaxResults=123,
        NextToken='string',
        Feature='SecurityHub'|'SecurityHubV2'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of items to return in the response.

    

  
  :type NextToken: string
  :param NextToken: 

    The token that is required for pagination. On your first call to the ``ListOrganizationAdminAccounts`` 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.

    

  
  :type Feature: string
  :param Feature: 

    The feature where the delegated administrator account is listed. Defaults to Security Hub if not specified.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'AdminAccounts': [
              {
                  'AccountId': 'string',
                  'Status': 'ENABLED'|'DISABLE_IN_PROGRESS'
              },
          ],
          'NextToken': 'string',
          'Feature': 'SecurityHub'|'SecurityHubV2'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AdminAccounts** *(list) --* 

        The list of Security Hub administrator accounts.

        
        

        - *(dict) --* 

          Represents a Security Hub administrator account designated by an organization management account.

          
          

          - **AccountId** *(string) --* 

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

            
          

          - **Status** *(string) --* 

            The current status of the Security Hub administrator account. Indicates whether the account is currently enabled as a Security Hub administrator.

            
      
    
      

      - **NextToken** *(string) --* 

        The pagination token to use to request the next page of results.

        
      

      - **Feature** *(string) --* 

        The feature where the delegated administrator account is listed. Defaults to Security Hub CSPM if not specified.

        
  
  **Exceptions**
  
  *   :py:class:`SecurityHub.Client.exceptions.InternalException`

  
  *   :py:class:`SecurityHub.Client.exceptions.InvalidInputException`

  
  *   :py:class:`SecurityHub.Client.exceptions.InvalidAccessException`

  
  *   :py:class:`SecurityHub.Client.exceptions.LimitExceededException`

  