Group Based Licensing has now been made GA, however it appears as though all the documentation is based around using MSOnline module. In Microsoft's own words:
Customers are encouraged to use the newer Azure Active Directory V2 PowerShell module instead of this module.
I would like to use the newer AzureAD module to report on the way in which a user has been licensed - either inherited (from a Group) or direct. Get-AzureADUser
doesn't appear to return any information that allows identification of such, nor does Get-AzureADUserLicenseDetail
.
In the beta schema for an Azure AD user account (inherited from directoryObject) this has a licenseAssignmentState
property of type licenseAssignmentState collection
, which contains an assignedByGroup
property that would help solve this issue. This property is missing from the v1.0. API.
Is it possible to make the AzureAD module use the Beta API at all? Or, is there an estimate of when additional properties will make it over to the 'GA' API?
Thanks.
For now, you still need to use the MSOnline (v1) module for this.
The AzureAD (v2) module currently uses the Azure AD Graph API for most cmdlets (including Get-AzureADUser
and Get-AzureADUserLicenseDetail
), not the Microsoft Graph API.
At the time of this writing, there is no published estimate for when the newer cmdlet module will expose these details.