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

*********************************
enable_organization_admin_account
*********************************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableOrganizationAdminAccount>`_  


  **Request Syntax**
  ::

    response = client.enable_organization_admin_account(
        AdminAccountId='string',
        Feature='SecurityHub'|'SecurityHubV2'
    )
    
  :type AdminAccountId: string
  :param AdminAccountId: **[REQUIRED]** 

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

    

  
  :type Feature: string
  :param Feature: 

    The feature for which the delegated admin account is enabled. Defaults to Security Hub if not specified.

    

  
  
  :rtype: 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**
  
  *   :py:class:`SecurityHub.Client.exceptions.InternalException`

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

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

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

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

  