SharePoint Security & Permissions

SharePoint Custom Permissions Edit Without Download

Master SharePoint custom permissions with PowerShell automation. Create secure 'Edit without Download' permissions for enhanced document security and collaboration.

Ofir Gavish
SharePoint, Security, PowerShell
8 min read

Overview

In this comprehensive guide, we'll walk you through creating a unique SharePoint permission level that allows users to edit documents without the ability to download them. This specific permission setup is crucial for maintaining document security while still enabling collaboration and content modification.

Key Benefits

Enhanced document security with download restrictions
Collaborative editing while maintaining control
Automated permission deployment with PowerShell
Granular folder-level permission management

Phase 1: Creating the Custom Permission Level

Important Prerequisites

Change the URL in step 2 to your actual SharePoint site URL
Ensure you have SharePoint administrator permissions
PowerShell 7 must be run as Administrator

1
Launch PowerShell 7 as Administrator

Right-click on PowerShell 7 and select "Run as Administrator" to ensure proper permissions for module installation and SharePoint operations.

2
Execute PowerShell Commands

Run the following commands in sequence to install PnP PowerShell, connect to your SharePoint site, and create the custom permission level:

# Install PnP PowerShell Module
Install-Module -Name "PnP.PowerShell"

# Connect to SharePoint Site (Update URL to your site)
Connect-PnPOnline -Url https://yourdomain.sharepoint.com/sites/test -UseWebLogin

# Create Custom Permission Level: "Edit without Download"
Add-PnPRoleDefinition -RoleName "Edit without Download" -Clone "Contribute" -Exclude "DeleteListItems", "DeleteVersions", "ManagePermissions", "ManageWeb", "AddAndCustomizePages", "ApplyThemeAndBorder", "ApplyStyleSheets", "CreateSSCSite", "UseRemoteAPIs", "OpenItems", "ViewVersions", "CancelCheckout", "ManagePersonalViews", "AddDelPrivateWebParts", "UpdatePersonalWebParts", "CreateGroups", "ManageAlerts", "CreateAlerts", "EditMyUserInfo", "EnumeratePermissions"

Technical Deep Dive: Permission Exclusions

The custom permission level is based on the "Contribute" level but excludes specific permissions to prevent downloads while maintaining editing capabilities:

Security Exclusions

OpenItems

Prevents direct file downloads

ViewVersions

Restricts version history access

DeleteListItems

Prevents content deletion

ManagePermissions

Blocks permission changes

Administrative Exclusions

ManageWeb

Prevents site-level changes

AddAndCustomizePages

Blocks page modifications

CreateGroups

Restricts group creation

ManageAlerts

Prevents alert management

Phase 2: Assigning Permission to a Specific Folder

Now that we've created the custom permission level, follow these steps to assign it to a specific folder:

1

Choose the target folder

Select the folder you want to set the custom permission on

2

Access folder management

Click on the three dots and choose Manage

SharePoint Manage Access

Click on the three dots and select "Manage" to access folder permissions

3

Open Advanced Settings

Click on Advanced settings

4

Stop Inheriting Permissions

Click on Stop Inheriting Permissions to break inheritance

SharePoint Advanced Settings

Access advanced permission settings for granular control

Stop Inheriting Permissions

Break permission inheritance to apply custom permissions

5

Grant New Permissions

Click on Grant Permissions

6

Configure User & Permission

Type username, show options, choose Edit without Download

7

Complete the Process

Click on Share to apply the custom permissions

Grant Permissions

Start the process of granting custom permissions

Share with Custom Permission

Select the custom "Edit without Download" permission level

Configuration Complete!

You have successfully created and assigned a custom SharePoint permission level that allows users to edit documents without downloading them. This enhances document security while maintaining collaborative capabilities.

Ofir Gavish

About the Author

Ofir Gavish

Microsoft Cloud Solutions Expert specializing in SharePoint, Intune, and Azure automation. Passionate about helping organizations optimize their Microsoft 365 environments through PowerShell automation and best practices for security and collaboration.

Share this article

Related Articles