Showing posts from November, 2017

Office365: Assigning licenses using Azure AD PowerShell

Every O365 administrator will have done this…assigning licenses to users. Before Microsoft came with ‘Group based licensing’, user licensing was either being done manually with someone logging into the portal or using PowerShell script.
In this article, I’ll discuss the PowerShell commands to manage user licensing using Azure AD PowerShell module. These commands can be fit into various scenarios e.g. Reset licenses in bulk.
Let’s get into it.
Licensing commands Below is a list of licensing related PowerShell commands, we’ll use to configure user licenses.
Get-AzureADUser: Gets an AAD user. AssignedLicenses is the property that tells us 1. Which licenses are assigned to User and 2. Which service plans are disabled? Get-AzureADSubscribedSku: Get a list of all licenses available to the tenantMicrosoft.Open.AzureAD.Model.AssignedLicense: Create a new object of this Class to configure license assignment options.Microsoft.Open.AzureAD.Model.AssignedLicenses: A collection of licenses to add…