How to update O365 SharePoint Modern Site Ownership through PowerShell

Common Blog


As we know, in general, site collection owners can be changed/updated from both browser UI and PowerShell script but for Group sites there is no option to change the site owner from browser/UI. So, unlike other site collections in O365 SharePoint tenant, the Group site owners are manageable only through PowerShell script.

Now let’s go through the steps to change the site owner using PowerShell script:

Step 1: Open “SharePoint Online Management Shell” OR “SharePoint 2013 Management Shell” if latest online components installed

Step 2: Run the below-given script line that tries to authenticate with O365 SharePoint tenant and then provide “” URL to login:


Step 3: Once you enter URL, it will ask for credentials. Please enter “Tenant admin” credentials.

Step 4: On successful authentication, please run the below-given script line to get Site information

Get-SPOSite |fl

Step 5: To change the Site Owner, please run the below-given script line.

Set-SPOSite -Owner

We can use the same script to change site owners for Classic Team and Communication sites as well.


Related posts

Challenges bring the best out of us. What about you?

We love what we do so much and we're always looking for the next big challenge, the next problem to be solved, the next idea that simply needs the breath of life to become a reality. What's your challenge?