How to find a user’s OneDrive for Business URL using GUI and PowerShell


In this blog, I will demonstrate how to find a user’s One Drive For Busniess URL using GUI or PowerShell. This is a common and basic requirement from the backend when we offboard users or need to modify anything in the aspect of admin-level like Storage, retention, etc. There is a lot of information available over the Web but as a consultant, I would prefer PowerShell cmdlets or GUI (many clicks needed). Let’s start with PowerShell.

Method 1: Using PowerShell

Note: We will need to install SharePoint PNP module as the default SharePoint, as the online module does not support this functionality.

Install PNP module and validate using the below command if it’s installed properly

Get-Module SharePointPnPPowerShell* -ListAvailable | Select-Object Name,Version | Sort-Object Version -Descending
Name Version
---- -------
SharePointPnPPowerShellOnline 3.14.1910.1
SharePointPnPPowerShellOnline 3.13.1909.0 
Now Connect-PnPOnline cmdlet to connect to your SharePoint Online Admin Center

$cred = Get-Credential

Connect-PnPOnline -Url https://<tenant> -Credentials $cred 


Now we need to pass a variable to store the user information, hence we can get a personal URL of the same URL passing the user variable in the next command line.


You should now have the user’s one drive for business personal URL. Now you can proceed with any changes and activity.

Method 2: GUI

This is a bit lengthier of a process, as we need more clicks if you don’t want to go with the above code

Login to the Sharepoint admin centre page, select Sharepoint, click on user profile from the advanced option, as shown below:


As soon as you click on Open, it will redirect you to the user profile page of SPO

Copy the user name to the search box and click on find

Once user information is listed on the page, roll the mouse over the user name and select manage persona site, as shown below


This will take you the user’s ODFB site URL and you can continue with any activity