(Cloud) Tip of the Day: Some more license management tips


Today’s (Cloud) Tip…

Assigning licenses with the same service plans

Some subscriptions have the same service plans. When you attempt to assign a user multiple licenses with the same service plans, you will get an error. You will need to disable the service plan on one of the licenses.

For example, you want to assign a user the Enterprise and Project Online licenses. Both of these licenses include SHAREPOINTWAC and SHAREPOINTENTERPRISE. You would do the following similar set of command lines.

  1. Set-MsolUserLicense -UserPrincipalName john@contoso.com -AddLicenses woodgrovebank:ENTERPRISEPACK
  2. $options = New-MsolLicenseOptions -AccountSkuId woodgrovebank:PROJECTONLINE_PLAN_2 -DisabledPlans SHAREPOINTWAC, SHAREPOINTENTERPRISE
  3. Set-MsolUserLicense -UserPrincipalName john@contoso.com -AddLicenses woodgrovebank:PROJECTONLINE_PLAN_2 -LicenseOptions $options

We assigned the user the Enterprise (E3) subscription with all service plans enabled. We then assigned the user the Project Online subscription with the SHAREPOINTWAC and SHAREPOINTENTERPRISE service plans disabled.

Removing licenses

To remove a license, you will use the RemoveLicenses parameter with the Set-MsolUserLicenses cmdlet.

Set-MsolUserLicense -UserPrincipalName john@contoso.com -RemoveLicenses woodgrovebank:PROJECTONLINE_PLAN_2

Creating new users with a license

To assign a license as you are creating a user, you will use the LicenseAssignment and LicenseOption parameters with the Net-MsolUser cmdlet.

New-MsolUser -UserPrincipalName john@contoso.com -DisplayName "John Smith" -LicenseAssignment woodgrovebank:PROJECTONLINE_PLAN_2 -LicenseOptions $options


Comments (0)

Skip to main content