CrowdStrike / falconpy

The CrowdStrike Falcon SDK for Python
https://www.falconpy.io
The Unlicense
352 stars 113 forks source link

CSPMRegistration - delete_aws_account Not working for orgs #688

Closed jhseceng closed 2 years ago

jhseceng commented 2 years ago

Tried passing the following response = falcon.delete_aws_account(organization_ids=[OrgId], ids=[account]) also tried without passing a list response = falcon.delete_aws_account(organization_ids=OrgId, ids=account) API response - 'Cannot delete master account 106808901XXX of organization individually - delete organization to remove'

Woking swagger

(https://api.us-2.crowdstrike.com/cloud-connect-cspm-aws/entities/account/v1?ids=106808901XXX&organization-ids=o-m74320eXXX)

jhseceng commented 2 years ago

Tried APIHarness falconharness.command("DeleteCSPMAwsAccount", organization_ids=OrgId, ids=AccountId)

jhseceng commented 2 years ago

Closing. When deleting an org just pass the orgid response = falcon.delete_aws_account(organization_ids=OrgId)