Forum Discussion
Scouter_Ted
Dec 31, 2019Copper Contributor
Searching multiple AD security groups for members?
I'm not sure if this is off topic for this group, but the groups control the licensing for O365 for exchange hybrid, so I figured this would be a good place to start. Every time a user leaves the...
oliwer_sundgren
Jan 02, 2020Iron Contributor
HelloScouter_Ted !
You could do a simple powershell script with a "foreach" loop and a "if" statement together with a CSV file to quite easily remove AD users from the license groups autimatically with the help of the CSV file ( Spreadsheet ).
It also helps if the license groups follow some kind of name standard.
Let me know if you need further guidance with the powershell script.
Cheers!
Kind regards
Oliwer