🎉 Our Office 365 Reporting Tool is now available in Azure Marketplace 🚀
This website uses cookies to improve your experience. We'll assume you're ok with this. Know more.
Azure AD

How to Get Unlicensed Users Report in Microsoft 365

Are you finding it challenging to track unlicensed users in your Microsoft 365 environment? Unlicensed users can pose security risks and cause service disruptions. For instance, a key project might stall if a team member lacks access to essential apps like Teams or SharePoint. By identifying and managing these users, you can ensure seamless collaboration and avoid potential issues. This guide will cover effective strategies to identify and manage unlicensed users in Microsoft 365.

Using Microsoft 365 Admin Center

Microsoft 365 Permission Required
Global Reader Least Privilege
Global Admin Most Privilege
  • Sign in to the Microsoft 365 admin center.
  • Navigate to Users»Active users.
  • Click on the Filter option. In the filter pane, select Unlicensed users. This will display a list of users who do not have any licenses assigned.
Using Microsoft 365 Admin Center

Using Windows PowerShell

Microsoft 365 Permission Required
Global Reader Least Privilege
Global Admin Most Privilege
  • Connect to Microsoft Graph PowerShell using the below cmdlet.
  • Windows PowerShell Windows PowerShell
     Connect-Graph -Scopes User.Read.All, Organization.Read.All
  • Run the following cmdlet to find Unlicensed Users in Microsoft 365 Using PowerShell.
  • Windows PowerShell Windows PowerShell
     Get-MgUser -Filter 'assignedLicenses/$count eq 0' -ConsistencyLevel eventual -CountVariable unlicensedUserCount -All
Using Windows PowerShell

Using PowerShell Script

Microsoft 365 Permission Required
Global Reader Least Privilege
Global Admin Most Privilege
  • By running the ‘Get-MgUser’ cmdlet with the right filter, you can generate a list of all users without assigned licenses. Although this method is more efficient than manually checking each user, it does require some familiarity with PowerShell to get the correct results.
  • No need to worry! We've created a streamlined PowerShell script that automatically retrieves and exports a list of all unlicensed users for you.
  • Download and run the following script in the Administrator PowerShell.
Using PowerShell Script
GetUnlicensedUsers.ps1

Exporting the list of unlicensed Microsoft 365 users is now a breeze!

Being the ultimate resource for IT admins, AdminDroid Microsoft 365 license management and reporting tool makes it easy to identify unlicensed users in your Microsoft 365 environment. No need for complex PowerShell commands; gain clear insights into license status and optimize your license usage with just a few clicks.

Find Microsoft 365 Users with Free Subscriptions

The Users with Free Subscriptions report shows users with free subscriptions, like Microsoft Flow (Free) or Business Apps (Free), helping identify those utilizing free licenses.

Dedicated Reports for Licensed Users

Track all M365 licensed users, including their subscriptions, sign-in status, and usage locations, to help admins effectively manage and revoke unnecessary licenses.

Customize the Alerts on Users’ License Changes

Use AdminDroid's alerting feature to receive categorized alerts (Severe, High, Medium, Low, Info) in your inbox. Set thresholds to get notified when a license is removed from users beyond a specified limit.

Retrieve License Expiry Reports in Various Formats

Export M365 license expiration reports in various formats like PDF, CSV, etc., to integrate with workflows, allowing admins to easily share data for auditing or user provisioning.

Avoid Data Loss from Suspended Subscriptions

Restore suspended Microsoft 365 subscriptions within 90 days to prevent permanent data loss and ensure continued access to essential services.

Regain Licenses of Disabled Users

Find disabled licensed users in Microsoft 365 and reassign those licenses to active users to prevent unnecessary license usage.

Overall, AdminDroid’s detailed reports provide comprehensive visibility into your Microsoft 365 environment, addressing unlicensed users, unused subscriptions, and license compliance. This empowers administrators to take proactive measures by efficiently identifying and managing unlicensed users. This approach enhances security and reduces the risk of compliance issues across the organization.

Explore a full range of reporting options

Important Tips

Implement group-based licensing to automate license assignments, streamline license management, and reduce the need for manual intervention.

Remove unused licenses by monitoring Microsoft 365 inactive users in your organization to optimize license usage.

Identify and remove unused Microsoft 365 subscriptions to enhance licensing efficiency.

Common Errors and Resolution Steps

The following are possible errors and troubleshooting hints while checking Microsoft 365 unlicensed users.

Error Please try again later. If this problem persists, you can try to create a new presentation from OneDrive.
unable-to-create-document-error

This error occurs when an unlicensed user tries to create a Powerpoint document or any other file using the M365 apps.

Fix Assign a license to the user for accessing Microsoft 365 applications.

Error Error with the inputs provided. Search duration is too long. Please select a date range less than 6 months.
purview-search-more-than-six-mon-error

This error will occur in the audit log search of Purview Compliance if the selected date and time range exceed the limit.

Fix In Microsoft Purview Audit (Standard), logs can only be retained for a maximum of 180 days. So, you need to give a time range within this period.

Error ./GetUnlicensedUsers.ps1 cannot be loaded because running scripts is disabled on this system.

This error occurs when attempting to run the script because the execution policy is set to strict by default, preventing scripts from executing.

Fix To resolve this error, you can set the execution policy to run the script.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

Error Get-MgUser: Calling principal does not have required MSGraph permissions Scopes User.Read.All.

This error occurs when the MS Graph module does not have permission to read the audit log to display the users without license assignment.

Fix Connect to the MS Graph PowerShell using the below cmdlet and permit to read Microsoft 365 unlicensed users.
Connect-Graph -Scopes User.Read.All, Organization.Read.All

Frequently Asked Questions

Track Unlicensed Users for Enhanced License Management in Microsoft 365

What risks do unlicensed Microsoft 365 users pose during onboarding?

What risks do unlicensed Microsoft 365 users pose during onboarding? +

As organizations increasingly use Microsoft 365 for collaboration and productivity, it’s crucial to provide new employees with the necessary licenses for a smooth M365 user onboarding experience. An unlicensed Microsoft 365 account can significantly hinder a new employee's ability to integrate effectively, which leads to frustration and productivity losses.

Unlicensed users are restricted in their access to essential tools and services, which impacts their ability to collaborate and contribute within the organization. Below are the key limitations faced by unlicensed users in Microsoft 365.

  • No access to core collaboration features: This includes Exchange Online (email), OneDrive (cloud storage), SharePoint (team sites), Teams (chat, calls, meetings), Planner (task management), Yammer (internal social network), and Power Automate (workflow automation).
  • Limited functionality in Microsoft 365 apps: Unlicensed users may only have view-only access to some features within web versions of the apps (Word, Excel, PowerPoint, etc.).
  • No access to security and compliance features: This includes Data Loss Prevention (DLP), retention policies, Multi-Factor Authentication (MFA), and Conditional Access.

Pro-Tip: Utilize the Microsoft 365 License Usage Report to determine employees' license usage and manage M365 licenses for better optimization.

What can unlicensed users do in Microsoft 365, and how to track unlicensed user activities?

Microsoft 365 unlicensed users have restricted access to certain services. They can view shared OneDrive files through links but are unable to upload any files. Additionally, unlicensed users can access SharePoint sites and applications from their Microsoft 365 homepage, as long as these are added as 'Custom tiles' by admins.

To track unlicensed user activities, follow these steps:

  • First, obtain the list of unlicensed users using any of the available methods mentioned in the table above.
  • Then, go to the Audit page in the Microsoft Purview portal, and add these users to the search filters.
  • Set the desired date and time range and click Search.

The results will show all the activities performed by the unlicensed users, including attempts to access services or resources. However, it’s essential to understand that this process is not straightforward.

With AdminDroid, you can effortlessly track the unlicensed users' activities within your Microsoft 365 environment.

  • Using the easy filters capability, you can view the activities of users without a license.
  • Here, you can view the operations performed, the time of each operation, as well as the user's department and job title. By analyzing these details, you can determine whether to assign a Microsoft license to the user.
admindroid-unlicensed-user-activites

What are the best practices to manage unlicensed users and in Microsoft 365?

What are the best practices to manage unlicensed users and in Microsoft 365? +

Managing unlicensed users in Microsoft 365 is essential for maintaining security, as it can lead to inefficiencies and potential security risks. Inactive or unlicensed accounts might still have access to sensitive resources, creating vulnerabilities. Properly handling these accounts is vital to maintaining both security and operational efficiency.

Evaluate User Needs in Microsoft 365

  • Evaluate Roles: Determine if unlicensed users need access to specific Microsoft 365 services based on their responsibilities.
  • Consult with Teams: Collaborate with department heads to confirm if licenses are necessary for certain roles.

Strategic Microsoft 365 License Assignment

  • Assign Licenses: It is important to allocate Microsoft 365 licenses to users who need access to resources to ensure uninterrupted productivity. After generating a list of unlicensed users, identify those requiring access and promptly assign licenses through the Admin Center or PowerShell.
  • Bulk Assign Licenses: If multiple users need the same license, consider bulk license assignment in M365.

Manage unlicensed OneDrive user accounts

  • To prevent data loss for users without OneDrive licenses, proactively manage their accounts, as unlicensed accounts have a 30-day grace period before their data is permanently deleted.
  • To avoid data loss, either reassign a license to the user if they still need OneDrive access or transfer their important files to another location before the grace period expires.

Important Note: Starting January 27, 2025, OneDrive accounts that have been unlicensed for longer than 93 days will become inaccessible. These unlicensed accounts will be automatically archived, admins will need to review and decide on their next steps.

How to efficiently manage unused licenses in Microsoft 365?

How to efficiently manage unused licenses in Microsoft 365? +

To maximize the return on investment for Microsoft 365, it's crucial to manage unused licenses effectively. By identifying and deactivating or reassigning unnecessary licenses, organizations can reduce costs and optimize resource allocation.

Maximizing ROI with Microsoft 365 License Management

  • Deactivate Accounts: Disable or remove unlicensed accounts that no longer require access to maintain security.
  • Identify and Reclaim Unused Licenses: Regularly review licenses to identify any that are inactive or unused M365 licenses, such as those assigned to deleted users, and reclaim them for reallocation or cost savings. Removing licenses from deleted M365 users ensures better resource management and helps maintain an efficient licensing strategy.

Establish Offboarding Processes

What happens to a user's data when their Microsoft 365 license is revoked?

What happens to a user's data when their Microsoft 365 license is revoked? +

When a Microsoft 365 license is removed, the data is retained for a limited time. The handling of this data depends on several factors, including the data type, applicable retention policies, and the specific subscription plan.

Immediate Access Loss in Microsoft 365

  • Once the license is removed, the user immediately loses access to their mailbox and other Microsoft 365 services. Admins, however, can still access and manage the data.

Data Retention Period in Microsoft 365

  • Exchange Mailbox: The data is preserved for 30 days. After this period, it is permanently deleted unless retention policies or labels are in place.
  • OneDrive for Business: Files are retained but not automatically deleted unless the user is fully removed from the Microsoft 365 environment.
  • Enterprise Subscriptions: For certain subscriptions like E3 or E5, inactive mailboxes can be used to retain user data, and the retention period can be adjusted.

Reassigning Microsoft 365 License

  • If the user still requires access, reassigning the license within the 30-day window allows them to regain access to their data and avoid permanent deletion.

Tip: Hiding unlicensed users from Teams can reduce clutter and improve user experience by ensuring only active, licensed users appear in the directory.

With AdminDroid’s dedicated report for license revoking activities, find all the removed Microsoft 365 license details along with the revoked plan details.

  • This report shows which licenses have been removed, so you can reassign them to active users and make the best use of your Microsoft 365 licenses.
admindroid-license-revoking-activites
+

Kickstart Your Journey With
AdminDroid

Your Microsoft 365 Companion with Enormous Reporting Capabilities

Download Now
User Help Manuals Compliance Docs
x
Delivering Reports on Time
Want a desired Microsoft 365 reports every Monday morning? Ensure automated report distribution and timely delivery with AdminDroid's Scheduling to your email anytime you need.
Delivering Reports on Time
Schedule tailored reports to execute automatically at the time you set and deliver straight to the emails you choose. In addition, you can customize report columns and add inteligent filtering to the activities just from the previous day to suit your Microsoft 365 report requirements.
Set It, Schedule It, See Results- Your Reports, Your Way, On Your Time!
Time Saving
Automation
Customization
Intelligent Filtering
Give Just the Right Access to the Right People
Grant fine-tuned access to any Microsoft 365 user with AdminDroid’s Granular Delegation and meet your organization’s security and compliance requirements.
Give Just the Right Access to the Right People
Create custom roles loaded with just the right permissions and give access to admins or normal users within AdminDroid. The result? A streamlined Microsoft 365 management experience that aligns your organization's security protocols and saves your invaluable time and effort.
Align, Define, Simplify: AdminDroid's Granular Delegation
Smart Organizational Control
Effortless M365 Management
Simplified Access
Advanced Alerts at a Glance
Receive quick notifications for malicious Microsoft 365 activities. Engage with the AdminDroid’s real-time alert policies crafted to streamline your security investigations.
Advanced Alerts at a Glance
Stay informed of critical activities like suspicious emails and high-risk logins, bulk file sharing, etc. Through creating and validating ideal alert policies, AdminDroid provides a comprehensive approach to real-time monitoring and management of potential threats within your organization.
AdminDroid Keeps You Always Vigilant, Never Vulnerable!
Proactive Protection
Real-time Monitoring
Security Intelligence
Threat Detection
Merge the Required Data to One Place
Combine multiple required columns into one comprehensive report and prioritize the information that matters most to you with AdminDroid’s Advanced Column Customization.
Merge the Required Data to One Place
This column merging capability offers a flexible way to add different columns from various reports and collate all the essential data in one place. Want to revisit the customized report? Save it as a 'View’, and your unique report is ready whenever you need it.
Merge with Ease and Save as Views!
Custom Reporting
Unique View
Desired Columns
Easy Data Interpretation
Insightful Charts and Exclusive Dashboards
Get a quick and easy overview of your tenant's activity, identify potential problems, and take action to protect your data with AdminDroid’s Charts and Dashboards.
Insightful Charts and Exclusive Dashboards
With AdminDroid charts and dashboards, visualize your Microsoft 365 tenant in ways you've never thought possible. It's not just about viewing; it's about understanding, controlling, and transforming your Microsoft 365 environment.
Explore Your Microsoft 365 Tenant in a Whole New Way!
Executive overviews
Interactive insights
Decision-making
Data Visualization
Efficient Report Exporting for Microsoft 365
Downloading your reports in the right file format shouldn’t be a hassle with AdminDroid’s Report Export. Experience seamless report exporting in various formats that cater to your needs.
Efficient Report Exporting for Microsoft 365
Navigate through diverse options and export Microsoft 365 reports flawlessly in your desired file format. Tailor your reports precisely as you need them and save them directly to your computer.
Take Control, Customize and Deliver- Your Office 365 Data, Exported in Your Way!
Easy Export
Seamless Downloading
Data Control
Manage Microsoft 365

Get AdminDroid Office 365 Reporter Now!