:doc:`Macie2 <../../macie2>` / Client / list_organization_admin_accounts

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



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

  

  Retrieves information about the delegated Amazon Macie administrator account for an organization in Organizations.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListOrganizationAdminAccounts>`_  


  **Request Syntax**
  ::

    response = client.list_organization_admin_accounts(
        maxResults=123,
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of items to include in each page of a paginated response.

    

  
  :type nextToken: string
  :param nextToken: 

    The nextToken string that specifies which page of results to return in a paginated response.

    

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

    
    ::

      {
          'adminAccounts': [
              {
                  'accountId': 'string',
                  'status': 'ENABLED'|'DISABLING_IN_PROGRESS'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The request succeeded.

      
      

      - **adminAccounts** *(list) --* 

        An array of objects, one for each delegated Amazon Macie administrator account for the organization. Only one of these accounts can have a status of ENABLED.

        
        

        - *(dict) --* 

          Provides information about the delegated Amazon Macie administrator account for an organization in Organizations.

          
          

          - **accountId** *(string) --* 

            The Amazon Web Services account ID for the account.

            
          

          - **status** *(string) --* 

            The current status of the account as the delegated Amazon Macie administrator account for the organization.

            
      
    
      

      - **nextToken** *(string) --* 

        The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

        
  
  **Exceptions**
  
  *   :py:class:`Macie2.Client.exceptions.ValidationException`

  
  *   :py:class:`Macie2.Client.exceptions.InternalServerException`

  
  *   :py:class:`Macie2.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`Macie2.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Macie2.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Macie2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Macie2.Client.exceptions.ConflictException`

  