How to delete a user in Microsoft 365?
There are several scenarios where you might need to delete a user account, such as when an employee leaves the company or when a guest user completes their project. Properly removing these accounts helps to protect sensitive information and manage subscription costs effectively.
You can delete a user using the below native methods in Microsoft 365.
Using Microsoft 365 Admin Center
- Login to the
- Navigate to
- Select the desired user and click "Delete User" at the top banner of the Active Users page.
- Then in the pop-up menu, you have the following option before deleting a user.
- Removing email aliases.
- Removing delegated permissions to the mailbox.
- Giving another user access to their OneDrive files for 30 days.
- Giving another user their email.
- After selecting the desired option, click "Delete User".
Using Microsoft Entra Admin Center
- Login to the
- Navigate to
- Select the desired user and click "Delete" at the top banner of the All Users page.
We can also permanently delete a user in Microsoft 365 to remove all the associated data and accesses. Follow the below steps to remove a user permanently.
- Login to the
- Navigate to
- Select the desired user and click "Delete Permanently" at the top banner of the Deleted Users page.
Using Microsoft PowerShell
Run the below cmdlet to delete a user in Microsoft 365.
Remove-MgUser -UserId "userId"
Unfortunately, there is no dedicated way to audit permanently removed users using Microsoft 365 native methods.
However, with the help of AdminDroid's permanently deleted users report, you can effortlessly monitor the users who have been deleted permanently from Microsoft 365 with just a few clicks.
- This report helps you observe details like permanent deletion time, permanently deleted user, who deleted the user, etc.
- Auditing permanently deleted users helps in identifying unauthorized deletions and recovering critical data if needed.