Why the group-based licensing option in Azure AD for Microsoft 365 groups is not always available!

%3CLINGO-SUB%20id%3D%22lingo-sub-2708073%22%20slang%3D%22en-US%22%3EWhy%20with%20Microsoft%20365%20Groups%20the%20option%20Licenses%20is%20available%20and%20just%20not!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2708073%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDear%20Azure%20and%20Microsoft%20365%20friends%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHave%20you%20ever%20wondered%20why%20in%20Azure%20Active%20Directory%20you%20can%20work%20with%20the%20License%20function%20for%20some%20Microsoft%20365%20groups%20and%20not%20for%20others%3F%20This%20has%20to%20do%20with%20the%20property%20%22SecurityEnabled%22.%20Let's%20explore%20this%20together.%20We'll%20look%20at%20two%20Microsoft%20365%20groups%20first.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20under%20%22Manage%22%20the%20option%20License%20is%20not%20available!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22_Gr1.JPG%22%20style%3D%22width%3A%20994px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307320i5C520D22875E031D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22_Gr1.JPG%22%20alt%3D%22_Gr1.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20under%20%22Manage%22%20the%20option%20license%20is%20it%20present!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22_Gr2.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307323iD7A661B2BDD51842%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22_Gr2.JPG%22%20alt%3D%22_Gr2.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhy%20is%20that%3F%20We%20find%20the%20answer%20with%20PowerShell!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20used%20the%20PowerShell%20ISE%20for%20this%20configuration.%20But%20you%20are%20also%20very%20welcome%20to%20use%20Visual%20Studio%20Code%2C%20just%20as%20you%20wish.%20Please%20start%20with%20the%20following%20steps%20to%20begin%20the%20deployment%20(the%20Hashtags%20are%20comments)%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23The%20first%20two%20lines%20have%20nothing%20to%20do%20with%20the%20configuration%2C%20but%20make%20some%20space%20below%20in%20the%20blue%20part%20of%20the%20ISE%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESet-Location%20C%3A%5CTemp%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EClear-Host%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%23We%20need%20the%20cmdlets%3CBR%20%2F%3E%3CSTRONG%3EInstall-Module%20-Name%20AzureAD%20-AllowClobber%20-Force%20-Verbose%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23Sometimes%20the%20module%20must%20be%20imported%3CBR%20%2F%3E%3CSTRONG%3EImport-Module%20AzureAD%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23Lets%20connect%20to%20the%20Azure%20Active%20Directory%3CBR%20%2F%3E%3CSTRONG%3EConnect-AzureAD%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23Did%20it%20work%3F%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EGet-AzureADMSGroup%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23We%20examine%20the%20%22Technik%22%20Microsoft%20365%20group%20for%20the%20property%20%22SecurityEnabled%22%20where%20the%20value%20false%20is%20returned!%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E(Get-AzureADMSGroup%20-SearchString%20%22Technik%22).SecurityEnabled%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23We%20examine%20the%20%22IT-Administration%22%20Microsoft%20365%20group%20for%20the%20property%20%22SecurityEnabled%22%20where%20the%20value%20true%20is%20returned!!%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E(Get-AzureADMSGroup%20-SearchString%20%22IT-Administration%22).SecurityEnabled%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20exactly%20the%20reason%20why%20the%20license%20option%20is%20not%20available%20in%20the%20Microsoft%20365%20group%20%22Technik%22%20and%20in%20the%20Microsoft%20365%20group%20%22IT-Administration%22%20it%20is!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23We%20need%20the%20group%20ID%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EGet-AzureADMSGroup%20-SearchString%20%22Technik%22%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23Now%20we%20change%20the%20value%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESet-AzureADMSGroup%20-Id%20a8269c21-1059-4bb1-8937-7f2d6a6f6b92%20-SecurityEnabled%20%24true%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EBingo!%3C%2FSTRONG%3E%20Now%20the%20license%20option%20is%20also%20available%20in%20the%20%22Technik%22%20group!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22_Gr3.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307324i84DB32218817CB4D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22_Gr3.JPG%22%20alt%3D%22_Gr3.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESure%20this%20wasn't%20super%20exciting%2C%20but%20I%20still%20wanted%20to%20share%20this%20information%20with%20you.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EI%20hope%20this%20article%20was%20helpful%20for%20you%3F%20Thank%20you%20for%20taking%20the%20time%20to%20read%20this%20article.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%20Tom%20Wechsler%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EP.S.%20All%20scripts%20(%23PowerShell%2C%20Azure%20CLI%2C%20%23Terraform%2C%20%23ARM)%20that%20I%20use%20can%20be%20found%20on%20github!%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Ftomwechsler%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Ftomwechsler%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2708073%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2711308%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20with%20Microsoft%20365%20Groups%20the%20option%20Licenses%20is%20available%20and%20just%20not!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2711308%22%20slang%3D%22en-US%22%3EYou%20didn%E2%80%99t%20really%20tell%20us%20the%20root%20level%20of%20the%20issue%2C%20just%20how%20to%20fix%20it..%20It%E2%80%99s%20still%20good%20info%20to%20know%2C%20but%20you%20should%20title%20this%20%E2%80%98How%20to%20fix%E2%80%99%20instead%20of%20%E2%80%98have%20you%20ever%20wondered%20why%3F%E2%80%99%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2711331%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20with%20Microsoft%20365%20Groups%20the%20option%20Licenses%20is%20available%20and%20just%20not!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2711331%22%20slang%3D%22en-US%22%3EYou%20are%20right%2C%20I%20forgot%20that%20part.%20Is%20corrected!%20Sorry!%3C%2FLINGO-BODY%3E
MVP

 

Dear Azure and Microsoft 365 friends,

 

Have you ever wondered why in Azure Active Directory you can work with the License function for some Microsoft 365 groups and not for others? This has to do with the property "SecurityEnabled". Let's explore this together. We'll look at two Microsoft 365 groups first.

 

Here under "Manage" the option License is not available!

_Gr1.JPG

 

Here under "Manage" the option license is it present!

_Gr2.JPG

 

Why is that? We find the answer with PowerShell!

 

I used the PowerShell ISE for this configuration. But you are also very welcome to use Visual Studio Code, just as you wish. Please start with the following steps to begin the deployment (the Hashtags are comments):

 

#The first two lines have nothing to do with the configuration, but make some space below in the blue part of the ISE

Set-Location C:\Temp
Clear-Host

#We need the cmdlets
Install-Module -Name AzureAD -AllowClobber -Force -Verbose

 

#Sometimes the module must be imported
Import-Module AzureAD

 

#Lets connect to the Azure Active Directory
Connect-AzureAD

 

#Did it work?

Get-AzureADMSGroup

 

#We examine the "Technik" Microsoft 365 group for the property "SecurityEnabled" where the value false is returned!

(Get-AzureADMSGroup -SearchString "Technik").SecurityEnabled

 

#We examine the "IT-Administration" Microsoft 365 group for the property "SecurityEnabled" where the value true is returned!!

(Get-AzureADMSGroup -SearchString "IT-Administration").SecurityEnabled

 

This is exactly the reason why the license option is not available in the Microsoft 365 group "Technik" and in the Microsoft 365 group "IT-Administration" it is!

 

#We need the group ID

Get-AzureADMSGroup -SearchString "Technik"

 

#Now we change the value

Set-AzureADMSGroup -Id a8269c21-1059-4bb1-8937-7f2d6a6f6b92 -SecurityEnabled $true

 

Bingo! Now the license option is also available in the "Technik" group!

_Gr3.JPG

 

Explanation:

When you create a new Microsoft 365 group in the Microsoft 365 portal, you cannot work with group licensing in Azure Active Directory because the group's SecurityEnabled property has the value "false".

If you create a new Microsoft 365 group in Azure Active Directory, you can work with group licensing in Azure AD because the SecurityEnabled property has a value of "true".

 

Sure this wasn't super exciting, but I still wanted to share this information with you.


I hope this article was helpful for you? Thank you for taking the time to read this article.

 

Best regards, Tom Wechsler

 

P.S. All scripts (#PowerShell, Azure CLI, #Terraform, #ARM) that I use can be found on github! https://github.com/tomwechsler

2 Replies
You didn’t really tell us the root level of the issue, just how to fix it.. It’s still good info to know, but you should title this ‘How to fix’ instead of ‘have you ever wondered why?’
You are right, I forgot that part. Is corrected! Sorry!