I have raised a post this morning as I have a similar script, however, my issue is deleting users from the Tableau group based on the AD group, these users may still be active users but just removed from the AD group. Is the best method as you suggest to have a separate input file with the users you wish to remove?
Any ideas much appreciated.
There are many ways to attack a problem. Using an input file makes it easy for affecting a large number of users, that's it.