Permission & Access Issues

How to Bulk Add a Secondary OneDrive Administrator with PowerShell

Maira MehtabMaira Mehtab Nov 3, 2026 868 views

Question details

The user needs to assign a secondary administrator to multiple OneDrive for Business accounts simultaneously but cannot find an interface option to do so.

How to Bulk Add a Secondary OneDrive Administrator with PowerShell
Product
OneDrive for Business
Device & OS
not provided
Scenario
Managing administrative access and permissions for multiple user accounts in an enterprise environment.
Observed behavior
The standard OneDrive for Business interface lacks a built-in option or button to perform bulk assignment of secondary administrators.
Before you start

Ensure you have the SharePoint Online Management Shell installed on your computer and possess Global Administrator or SharePoint Administrator credentials in your Microsoft 365 tenant.

Solution 1Recommended

Use SharePoint Online PowerShell for Bulk Assignment

Since the OneDrive UI does not support bulk administrative assignments, use SharePoint Online PowerShell to automate the process across multiple personal sites.

OneDrive for Business personal sites are technically SharePoint site collections under the hood. By utilizing the SharePoint Online Management Shell, you can retrieve all personal sites and programmatically add a secondary site collection administrator to each.

1
Connect to SharePoint Online

Open the SharePoint Online Management Shell as an administrator. Type 'Connect-SPOService -Url https://yourdomain-admin.sharepoint.com' and press Enter. Log in with your admin credentials when prompted.

2
Retrieve OneDrive Sites

Use the 'Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'"' command to gather a list of all user OneDrive personal sites in the tenant.

3
Assign the Administrator

Pipe the results into a loop and use 'Set-SPOUser -Site $_.Url -LoginName admin@yourdomain.com -IsSiteCollectionAdmin $true' to assign the designated secondary administrator to each site.

Use SharePoint Online PowerShell for Bulk Assignment
Test Before Deployment: Always test the PowerShell script on a small, specific group of 2-3 users before running it in bulk across your entire organization to ensure syntax and access levels are correct.
Free Microsoft Office alternative

Manage Enterprise Documents Seamlessly with WPS Office

While managing cloud storage permissions requires administration portals and PowerShell, equipping your team with a cost-effective, highly compatible office suite is just as critical. WPS Office offers a familiar interface, deep compatibility with standard file formats, and robust features that empower your users without the heavy enterprise overhead.

  1. 1. Download the Installer: Navigate to the official WPS Office website and click the Free Download button.
  2. 2. Install WPS Office: Run the downloaded installer and follow the on-screen prompts to set up the suite on your device.
  3. 3. Open and Edit Files: Launch WPS Office to instantly open your existing Word, Excel, and PowerPoint documents with perfect formatting preservation.
Seamless compatibility with Microsoft Office file formats (.docx, .xlsx, .pptx)Lightweight application with a familiar, easy-to-use tabbed interfaceCost-effective solution for large-scale enterprise deploymentsEasily open, edit, and save documents directly to and from your cloud storage
microsoft office alternative - wps office

Frequently Asked Questions

Can I bulk add secondary administrators using the Microsoft 365 admin center UI?

No, the standard Microsoft 365 and SharePoint admin center interfaces do not currently support bulk assigning secondary administrators for OneDrive. This task must be performed using PowerShell.

Which PowerShell module is required for managing OneDrive for Business sites?

You need to install and import the SharePoint Online Management Shell module. Since OneDrive sites are a type of SharePoint site collection, SPO cmdlets are used to manage them.

Is it possible to assign a security group as a secondary administrator?

Yes, you can assign a mail-enabled security group or a Microsoft 365 group as a secondary site collection administrator using the same 'Set-SPOUser' cmdlet by providing the group's email address or claim ID.