Permission & Access Issues

How to Manage SharePoint Folder Permissions in Bulk Using PowerShell

Elise WilliamsElise Williams Nov 2, 2026 870 views

Question details

The user needs a method to bulk update SharePoint folder permissions for Active Directory groups across thousands of subfolders to avoid manual configuration.

How to Manage SharePoint Folder Permissions in Bulk Using PowerShell
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Assigning different access levels to thousands of subfolders for specific Active Directory groups without doing it manually.
Observed behavior
Updating folder permissions manually requires thousands of individual clicks per folder, making it highly inefficient to manage subfolder inheritance and access.
Before you start

Ensure you have SharePoint Administrator or Site Owner privileges, and install the latest PnP PowerShell module on your system to run the necessary commands.

Solution 1Recommended

Use PnP PowerShell to Bulk Manage Folder Permissions

Utilize the PnP PowerShell module and the Set-PnPFolderPermission command to automate permission assignments for Active Directory groups across multiple subfolders.

Instead of manually clicking through thousands of folders, you can use PnP PowerShell scripts to break inheritance and assign specific permissions to Active Directory groups automatically.

Note that Active Directory groups should ideally have associated email addresses to be seamlessly resolved and assigned permissions in SharePoint via PowerShell.

1
Install PnP PowerShell

Open PowerShell as an Administrator and run 'Install-Module -Name PnP.PowerShell' to install the necessary SharePoint management commands.

2
Connect to the SharePoint Site

Connect to your target SharePoint environment by running 'Connect-PnPOnline -Url <YourSiteURL> -Interactive', logging in with your admin credentials.

3
Stop Folder Inheritance

In your script, iterate through the target folders and break their permission inheritance so they do not simply copy the parent folder's access levels.

4
Assign Permissions Using Set-PnPFolderPermission

Use the 'Set-PnPFolderPermission' cmdlet within your script loop to grant specific access (e.g., Read or Edit) to your Active Directory group for each target folder.

Preserve Parent Access: When breaking inheritance and restricting subfolders, ensure you preserve read access on the parent folders so users can navigate the directory tree to reach their specific content.
Free Microsoft Office alternative

Try WPS Office for Your Document Management Needs

While managing SharePoint permissions requires complex PowerShell scripting, dealing with everyday documents doesn't have to be complicated. WPS Office provides a free, lightweight, and user-friendly alternative to Microsoft Office for all your document creation and collaboration needs.

  1. 1. Download the Installer: Visit the official WPS Office website and click the 'Download' button to get the free installer.
  2. 2. Install WPS Office: Run the downloaded setup file and follow the straightforward on-screen instructions to install the suite.
  3. 3. Start Creating Documents: Open WPS Office to immediately start creating, editing, and managing your documents, spreadsheets, and presentations.
Fully compatible with Microsoft Office formats including Word, Excel, and PowerPoint.Lightweight installation with incredibly fast startup times.Free to use with an intuitive, tabbed interface familiar to Office users.Built-in PDF editing and seamless document sharing capabilities.
microsoft office alternative - wps office

Frequently Asked Questions

Can I assign SharePoint folder permissions to Active Directory groups without email addresses?

While possible, SharePoint resolves and syncs Active Directory groups much more reliably when they have an associated email address. If they do not, you may face issues assigning permissions via PowerShell and might need to configure them as mail-enabled security groups first.

Where can I find complete PowerShell scripts for bulk managing SharePoint permissions?

Because scripts for bulk updating thousands of folders can be complex and specific to your organizational structure, it is highly recommended to seek detailed script examples and guidance on the official Microsoft SharePoint Tech Community.

Does Set-PnPFolderPermission work for default site groups as well as AD groups?

Yes, the Set-PnPFolderPermission cmdlet can be used to assign access rights to both default SharePoint site groups (like Owners, Members, Visitors) and synchronized Active Directory groups.