How to update Microsoft 365 user licenses in bulk?
+
Implementing bulk license change in Microsoft 365 can streamline the management of user permissions and access to services. This process allows admins to change licenses for multiple users at once, saving time and ensuring consistency.
Here's how to change licenses to multiple users using the Microsoft 365 admin center.
- Access the Microsoft 365 admin center and navigate to the Users »Active users page.
- Select the names of the users you want to change licenses to and click Manage product license at the top.
- In the Manage product licenses pane, select Assign more: Keep the existing licenses and assign more, and click Next.
- Under Licenses, select the license(s) you want to assign to the desired users.
- By default, all services included with the licenses are assigned to users. To restrict certain services, simply uncheck the boxes for the services you do not want the users to access.
- Now, click Save changes, to modify licenses to multiple users.
However, manually assigning licenses to each user can be time-consuming. To streamline the process, you can use the following script to assign licenses to multiple users by importing a CSV file.
$AddLicenses= @( @{SkuId = <SkuID>}, @{SkuId = <SkuID>})
$UserNames = Import-Csv -Header "UPN" $UserNamesFile
foreach ($Name in $UserNames) {
$UPN = $Name.UPN
Set-MgBetaUserLicense –UserId <UPN> -AddLicenses $AddLicenses -RemoveLicenses @()
}