Forum Discussion
Is it possible to create Office 365 Groups with Azure AD PowerShell Module (2.0.0.98)?
It seems it's not possible an for now you can only create Security Groups...am I correct? cc VasilMichev TonyRedmond
You have to use the New-AzureADMSGroup cmdlet to create a new Office 365 Group. This is a variation of New-AzureADGroup that uses the Microsoft Graph to create the group.
[PS] C:\> New-AzureADMSGroup -Description “A Group for Juan to play with” -DisplayName “Juan's Office 365 Group” -MailEnabled $true -SecurityEnabled $true -MailNickname “JuanGroup” -GroupTypes “Unified”
But I would always run New-UnifiedGroup to create an Office 365 Group...
6 Replies
You have to use the New-AzureADMSGroup cmdlet to create a new Office 365 Group. This is a variation of New-AzureADGroup that uses the Microsoft Graph to create the group.
[PS] C:\> New-AzureADMSGroup -Description “A Group for Juan to play with” -DisplayName “Juan's Office 365 Group” -MailEnabled $true -SecurityEnabled $true -MailNickname “JuanGroup” -GroupTypes “Unified”
But I would always run New-UnifiedGroup to create an Office 365 Group...
- Thanks Tony, I was missing the -GroupTypes "Unified" :-)...why do you say to run always New-UnifiedGroup?
Because when you run New-UnifiedGroup, the mailbox is created immediately. When you run New-AzureADMSGroup, the group object is created in AzureAD and then synchronized with EXO, which then creates the group mailbox.