sodcalculator

10 Tech How-To

Microsoft 365 Licensing: Add, Assign, Remove Access

Guide 10-53329 · Updated · Step by step

To safely add, assign, or remove Microsoft 365 user licenses, you must use the Microsoft 365 admin center or PowerShell, and you should always remove licenses before deleting a user account to avoid data loss. This guide walks through the exact steps for each task, explains the differences between license types, and covers common pitfalls like reclaiming unused seats and handling hybrid environments.

Background: How Microsoft 365 Licensing Works

Microsoft 365 is a subscription-based service where each user needs a license that grants access to specific apps and services (e.g., Exchange Online, SharePoint, Teams, or desktop Office apps). Licenses are tied to user accounts in Azure Active Directory (now Microsoft Entra ID). When you assign a license, the user can sign in and use the included services; when you remove it, access is revoked—usually within minutes but sometimes up to 24 hours for some services.

There are two main license categories: user subscription licenses (USLs) that you assign to individuals, and add-on licenses that extend features (like extra storage or advanced compliance). You can mix and match plans (e.g., a user with Microsoft 365 E3 and an Exchange Online Archiving add-on).

How to Add Licenses to Your Tenant

Before you can assign licenses, you must have them available in your tenant. You add licenses by purchasing them through the Microsoft 365 admin center:

  1. Go to Billing > Purchase services.
  2. Choose a plan (e.g., Microsoft 365 Business Basic, Standard, or E3).
  3. Select the number of licenses you need (you can add more later).
  4. Complete the purchase. Licenses appear under Billing > Licenses.

If you have a volume licensing agreement (Enterprise Agreement, CSP), your partner or admin may provision licenses automatically. You can also use PowerShell to add licenses via the New-MgSubscribedSku cmdlet, but the admin center is the simplest for most admins.

How to Assign Licenses to Users

You can assign licenses in bulk or individually. The most common method is the admin center:

  1. Go to Users > Active users.
  2. Select the user(s) you want to license (use the checkbox).
  3. Click Licenses and apps in the top menu.
  4. Check the box for the license you want to assign (e.g., Microsoft 365 E3).
  5. Optionally, uncheck any service you don’t want to turn on (like Yammer or Sway).
  6. Click Save changes.

For multiple users, you can select several at once. PowerShell is faster for large batches:

Connect-MgGraph -Scopes User.ReadWrite.All, Organization.Read.All
Set-MgUserLicense -UserId user@domain.com -AddLicenses @(@{SkuId = "contoso:E3"}) -RemoveLicenses @()

You need the SKU ID (e.g., contoso:E3) which you can find with Get-MgSubscribedSku.

How to Remove Licenses Safely

Removing a license revokes access to the services included in that license. To avoid data loss, follow these rules:

  • Remove licenses before deleting the user account—if you delete the account first, you may lose access to their data permanently.
  • Warn the user—they will lose access to email, Teams, and Office apps immediately.
  • Decide on data retention—you can convert the mailbox to a shared mailbox or export data before removing the license.

Steps in admin center:

  1. Go to Users > Active users.
  2. Select the user.
  3. Click Licenses and apps.
  4. Uncheck the license you want to remove.
  5. Click Save changes.

PowerShell: Set-MgUserLicense -UserId user@domain.com -AddLicenses @() -RemoveLicenses @(@{SkuId = "contoso:E3"})

How to Choose the Right License for Your Users

Microsoft 365 offers several plans, each with a different set of services. The right choice depends on job role and needs:

  • Microsoft 365 Business Basic—web and mobile Office apps, email, Teams, SharePoint, OneDrive. Good for frontline workers who don’t need desktop Office.
  • Microsoft 365 Business Standard—adds desktop Office apps (Word, Excel, PowerPoint, Outlook) and more advanced business tools like Bookings.
  • Microsoft 365 E3—enterprise-grade security and compliance features, plus desktop apps and more advanced admin controls.
  • Microsoft 365 E5—adds advanced security, analytics, and voice features (e.g., Power BI, advanced threat protection).

Also consider add-on licenses like Exchange Online Archiving or Microsoft 365 Copilot for specific users. Always match the license to the user’s actual job functions to avoid overpaying.

Common Problems and How to Avoid Them

  • License shortage—if you try to assign more licenses than you own, you’ll get an error. Buy enough seats in advance.
  • Service-specific issues—sometimes a user can’t access a service because the service is disabled in the license (e.g., you unchecked Teams). Check the license’s service plan.
  • Duplicate or conflicting licenses—assigning two plans with overlapping services (e.g., E3 and Business Standard) can cause confusion. Remove one.
  • Delayed access—after assignment, it can take up to 24 hours for all services to activate. Patience is key.
  • Deleting a licensed user—if you delete a user without removing the license, you lose the license seat but still pay for it until you remove it from the deleted user (which is not possible after deletion). Always remove licenses first.

Costs and Billing Considerations

Licenses are billed monthly or annually, depending on your agreement. You are charged for each assigned license, not for unassigned ones you purchased. If you have unused licenses, you can reclaim them by removing them from users who no longer need them. You can also cancel a subscription entirely if you no longer need it, but be aware of data retention policies—you typically have 90 days to recover data before it’s permanently deleted.

Alternatives to Manual Licensing

For larger organizations, manual assignment is error-prone. Alternatives include:

  • Group-based licensing—assign licenses to a security group, and users are automatically licensed when added to the group. This is ideal for dynamic teams.
  • PowerShell scripts—automate bulk assignment/removal based on CSV files or HR data.
  • Microsoft Entra ID Governance—for enterprise plans, you can automate license assignment based on access reviews.
  • Partner-managed licensing—if you use a CSP partner, they can manage licenses for you.

Frequently Asked Questions

What happens to a user’s data when I remove their license?

They lose access to the services, but the data (email, files, SharePoint sites) is typically retained for 30 days (or longer with retention policies). After that, it may be permanently deleted. To be safe, export data before removing the license.

Can I assign a license to a user who is already licensed with a different plan?

Yes, but you should avoid overlapping services. If you assign a second plan, the user will have access to both sets of services, which can cause confusion and extra cost. It’s better to replace the existing license with the new one.

How do I remove a license from a user who has left the company?

Go to Active users, select the user, and remove the license. If you also want to delete the account, remove the license first, then delete the account. You can also convert the mailbox to a shared mailbox to keep the data.

Why can’t I assign a license to a user?

Common reasons: you don’t have enough available licenses, the user is a guest (external) and needs a different license type, or the user is in a different region where the license isn’t available. Check the error message for specifics.

Is it safe to use PowerShell to manage licenses?

Yes, but you must be careful with the commands. Always test on a single user first, and use the -WhatIf parameter in some cmdlets to preview changes. Also ensure you have the correct permissions (Global Admin or User Administrator).

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →