Allow Direct license assignment through powershell on Group Based Licensing scenarios
Group based licensing supports the coexistence with Direct license assignment to users. This means that from the AAD portal we can directly assign a license to a user that inherits a license through a group. Right now this is not possible through powershell which is a problem when trying to assign licenses on pilot scenarios.
Set-AzureADUserLicense -ObjectId $msolUserObject.objectid -AssignedLicenses $AssignedLicenses
Set-AzureADUserLicense : Error occurred while executing SetUserLicenses
Message: User inherits a license from a group membership and it cannot be directly modified on the user. License Sku: ENTERPRISEPREMIUM, Account:
Please add this functionality.