Closed apalooza1 closed 5 years ago
The script does not exit on this condition but rather does as you have suggested and first tries to add it as a member and then moves on to the next account.
I tested where the first account in my list was already enabled. The script did not go on to the 2nd and 3rd accounts in the list. Thoughts?
Ensure you have one account,email per line in your file also make sure there are no control characters.
After retesting several times, functionality seems to be as expected. Not sure what happened on the first run. Thanks.
If the script reads in an account that already has security hub enabled, it will automatically exit. Ideally, it should skip to the next line/account in the csv until the list is exhausted.