remove unlicensed users office 365

Remove Unlicensed Users in Office 365: A Step-by-Step Guide

By Daniel Lopez
AD

Are you a system administrator or IT manager facing the challenge of unlicensed users in your Office 365 environment? Unlicensed users can occur when licenses are not correctly managed, leading to potential issues such as lack of access control, wasted resources, and unauthorized data access. In this guide, we'll walk you through the process of identifying and removing unlicensed users in Office 365, ensuring a secure and well-managed environment.

Before diving into the removal process, it's crucial to understand the implications of unlicensed users. Unlicensed users may not have access to the full suite of features, could be consuming resources without proper authorization, and might pose security risks. Regularly auditing and managing licenses is essential for maintaining a secure and efficient Office 365 infrastructure.

Identifying Unlicensed Users

The first step in removing unlicensed users is to identify them. Microsoft provides several ways to do this, including PowerShell and the Office 365 admin center.

AD
Microsoft Seizes Domains Related to Office 365 Phishing Attacks
Microsoft Seizes Domains Related to Office 365 Phishing Attacks
Error700003: Your organization has deleted this device [Fix]
Error700003: Your organization has deleted this device [Fix]
How to uninstall Microsoft 365, Office 2021, 2019 on Windows 10 - Pureinfotech
How to uninstall Microsoft 365, Office 2021, 2019 on Windows 10 - Pureinfotech

Using PowerShell is often the most efficient method, as it allows for automated scripts and exports. To get started, you'll first need to install the AzureAD and Exchange Online PowerShell modules. After setting up a connection to Office 365, you can use the following cmdlets to identify unlicensed users:

Using PowerShell to Identify Unlicensed Users

Get-AzureADUser -Filter "UserType eq 'Member'" | Select-Object DisplayName, UserPrincipalName, AccountEnabled, LicenseAssignmentStatus

56K views · 132 reactions | Office365pro on Reels
56K views · 132 reactions | Office365pro on Reels
Microsoft Makes Office 365 Cloud Secure With Multi-Factor Authentication
Microsoft Makes Office 365 Cloud Secure With Multi-Factor Authentication
How To Migrate From Office 365 Tenant To Another Office 365 Tenant?
How To Migrate From Office 365 Tenant To Another Office 365 Tenant?

This command will return a list of all active users along with their license assignment status. You can then filter the results to find unlicensed users by adding the following code:

$unlicensedUsers = Get-AzureADUser -Filter "UserType eq 'Member' and (LicenseAssignmentStatus eq 'None' or LicenseAssignmentStatus eq 'ExplicitlyDenied')" | Select-Object DisplayName, UserPrincipalName, AccountEnabled, LicenseAssignmentStatus

AD

Identifying Unlicensed Users in the Office 365 Admin Center

If you prefer a graphical interface, you can use the Office 365 admin center to identify unlicensed users. Navigate to the "Show all" option in the left-hand menu, then click on "Users & groups"

the office 3655 home page is shown in this screenshote image, which shows how to set up an office 3655 home account
the office 3655 home page is shown in this screenshote image, which shows how to set up an office 3655 home account
PowerShell Script To Move List Of Users To Office 365 And Assign Them O365 Licenses
PowerShell Script To Move List Of Users To Office 365 And Assign Them O365 Licenses
[Review] Microsoft Office 365 Data Loss Prevention Policy Guide - MiniTool
[Review] Microsoft Office 365 Data Loss Prevention Policy Guide - MiniTool
How to Fix Microsoft 365 and Office Home & Student 2021 Installation Errors in Windows
How to Fix Microsoft 365 and Office Home & Student 2021 Installation Errors in Windows
How to See If Your Office 365 Subscription Is Active
How to See If Your Office 365 Subscription Is Active
How To Cancel The Office Product Subscription? Office.com/setup
How To Cancel The Office Product Subscription? Office.com/setup

Here, you can filter the users by license assignment status. Click on the "License status" filter, and select "No licenses assigned" to view a list of unlicensed users.

Removing Unlicensed Users

Once you have identified the unlicensed users, it's time to remove them from your Office 365 environment. Before proceeding, ensure that you have reviewed the impact of removal on the user's data and access rights.

AD

When removing unlicensed users, you have two main options: suspending their accounts or deleting them permanently.

How to Whitelist a Domain to Bypass Spam Filtering in Microsoft Office 365 - Rolet Support / KnowledgeBase
How to Whitelist a Domain to Bypass Spam Filtering in Microsoft Office 365 - Rolet Support / KnowledgeBase
Microsoft Office 365 down: thousands affected as service crashes
Microsoft Office 365 down: thousands affected as service crashes
Office 365 Slow: Reasons and Solutions for the Issue!
Office 365 Slow: Reasons and Solutions for the Issue!
Office 365 Licensing | Instant Pro Access
Office 365 Licensing | Instant Pro Access
How to Fix the “There’s a Problem with Your Office License” Error
How to Fix the “There’s a Problem with Your Office License” Error
the computer screen is turned on to show data
the computer screen is turned on to show data
Office 365 vs Microsoft 365 – What’s the REAL Difference?
Office 365 vs Microsoft 365 – What’s the REAL Difference?
An underperforming Microsoft 365 environment often looks normal from the outside. Inside the business, it creates duplicated work, unclear file locations, inconsistent permissions and unnecessary licence costs. Small configuration problems can gradually become everyday productivity problems. #Omnexo #M365 #MicrosoftTeams #SharePoint #BusinessSystems Business Systems, Microsoft, The Outsiders
An underperforming Microsoft 365 environment often looks normal from the outside. Inside the business, it creates duplicated work, unclear file locations, inconsistent permissions and unnecessary licence costs. Small configuration problems can gradually become everyday productivity problems. #Omnexo #M365 #MicrosoftTeams #SharePoint #BusinessSystems Business Systems, Microsoft, The Outsiders
Incompatible Office products are installed on your machine [FIX]
Incompatible Office products are installed on your machine [FIX]
Microsoft Office Removal Tool
Microsoft Office Removal Tool
How to recover unsaved Word documents
How to recover unsaved Word documents
Avoid Clever Office 365 Phishing Attacks - Look Out for These Signs
Avoid Clever Office 365 Phishing Attacks - Look Out for These Signs
Fix Word Cannot Open the Document: User Does Not Have Access Privileges
Fix Word Cannot Open the Document: User Does Not Have Access Privileges

Suspending Unlicensed User Accounts

Suspending a user account is a reversible action that can be useful when you're not sure about the user's status or need to review their access rights further. To suspend a user account:

  1. Select the user in the Office 365 admin center "Users & groups" page.
  2. Click on "Block user" in the right-hand menu.
  3. Choose "Suspend user" and click "Suspend."

Permanently Deleting Unlicensed User Accounts

If you're certain that the unlicensed users no longer require access to your Office 365 environment, you can delete their accounts permanently. This action cannot be undone, so ensure you have the proper authorization before proceeding:

AD
  1. Select the user in the Office 365 admin center "Users & groups" page.
  2. Click on "Delete user" in the right-hand menu.
  3. Confirm the deletion, and click "Delete."

After deleting the user, you'll have 30 days to restore the account if needed. During this period, you can also recover any data belonging to the deleted user. After 30 days, the account and its data will be permanently deleted from your Office 365 environment.

Regularly auditing and managing licenses in your Office 365 environment can help prevent the accumulation of unlicensed users and ensure optimal use of resources. By staying proactive in managing licenses, you can maintain a secure and efficient environment for your organization. Stay vigilant and keep monitoring your Office 365 setup to keep unlicensed users at bay.

AD