:doc:`Detective <../../detective>` / Client / list_organization_admin_accounts

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



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

  

  Returns information about the Detective administrator account for an organization. Can only be called by the organization management account.

  

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


  **Request Syntax**
  ::

    response = client.list_organization_admin_accounts(
        NextToken='string',
        MaxResults=123
    )
    
  :type NextToken: string
  :param NextToken: 

    For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return.

    

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

    
    ::

      {
          'Administrators': [
              {
                  'AccountId': 'string',
                  'GraphArn': 'string',
                  'DelegationTime': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Administrators** *(list) --* 

        The list of Detective administrator accounts.

        
        

        - *(dict) --* 

          Information about the Detective administrator account for an organization.

          
          

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

            The Amazon Web Services account identifier of the Detective administrator account for the organization.

            
          

          - **GraphArn** *(string) --* 

            The ARN of the organization behavior graph.

            
          

          - **DelegationTime** *(datetime) --* 

            The date and time when the Detective administrator account was enabled. The value is an ISO8601 formatted string. For example, ``2021-08-18T16:35:56.284Z``.

            
      
    
      

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

        If there are more accounts remaining in the results, then this is the pagination token to use to request the next page of accounts.

        
  
  **Exceptions**
  
  *   :py:class:`Detective.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`Detective.Client.exceptions.ValidationException`

  
  *   :py:class:`Detective.Client.exceptions.TooManyRequestsException`

  