disable_organization_admin_account

Detective.Client.disable_organization_admin_account()

Removes the Detective administrator account in the current Region. Deletes the organization behavior graph.

Can only be called by the organization management account.

Removing the Detective administrator account does not affect the delegated administrator account for Detective in Organizations.

To remove the delegated administrator account in Organizations, use the Organizations API. Removing the delegated administrator account also removes the Detective administrator account in all Regions, except for Regions where the Detective administrator account is the organization management account.

See also: AWS API Documentation

Request Syntax

response = client.disable_organization_admin_account()
Returns
None

Exceptions

  • Detective.Client.exceptions.AccessDeniedException
  • Detective.Client.exceptions.InternalServerException
  • Detective.Client.exceptions.ValidationException
  • Detective.Client.exceptions.TooManyRequestsException