Automatic creation of O365 groups

Frequent Contributor

Is something like this possible - and how:


When a new organizational department is created in AD (and subsequently synced to AAD), an Office 365 Group is automatically created with all the usual associated services? And vice versa - when a department is deleted in AD, the associated O365 Group is deleted? 

1 Reply
best response confirmed by Christophe Fiessinger (Microsoft)
IMHO, you have to automate both scenarios by using PowerShell / Microsoft Graph API