How to Lock a File in SharePoint Document Library?

SharePoint document library allows us to set the password while sharing files. As a result, we can secure our files. In this SharePoint Online tutorial, I will show you step-by-step instructions on how to lock a file in a SharePoint document library by password.

Locking a file or folder is possible, when we share a document library files or folders with external users. Even though we can set a password for SharePoint Online document library files or folders with internal users, it won’t work for internal users.

Also, if anyone wants to unlock a file, only that user can open a file and view it by entering the password.

Lock a File in SharePoint Document Library

Table of Contents

Lock a File in a SharePoint Online Document Library

To lock a file within a SharePoint document library and share it with users, Follow the below-mentioned steps:

Enable Sharing Settings to Anyone at Site Level

In this section, I will show you how to enable sharing settings to Anyone at a site level through a SharePoint admin center.

By default, external sharing will be enabled for anyone at a SharePoint Tenant level.

SharePoint online document library file locking

How to lock <a href=a file in SharePoint document library" width="932" height="294" />

How to lock files in modern SharePoint document library

This is how to enable external sharing to anyone at a site level in a SharePoint Online document library.

How to Deactivate Limited-access User Permission in Lockdown Mode

Now, I will show you the next step i.e.: deactivating limited access user permissions lockdown mode in a SharePoint Online site.

When the Limited-access user permission lockdown mode is enabled, permissions for users in “limited access” permissions level (such as Anonymous Users) are reduced, preventing access to Application Pages.

How to lock a SharePoint document library file

Locking a SharePoint document Library file

SharePoint Online document library File locking with an examples

SharePoint document library File locking with an examples

This is how to deactivate the limited-access user permission lockdown mode under site collection administration.

Share a File by Locking in a SharePoint Online Document Library

Now, I will explain how to share a file with file locking in a SharePoint Online document library.

Share a file by locking in SharePoint document library

Locking <a href=a file in SharePoint Online document library" width="517" height="311" />

SharePoint document library lock a file by password

how to set a password for SharePoint online document library file

Create a password for <a href=a file in SharePoint" width="530" height="451" />

How to create a Password in SharePoint document library

This is how to Share a file by locking it in a SharePoint Online document library.

Conclusion

Through this SharePoint tutorial, I have demonstrated how to lock a document library file in a SharePoint site. And also I have shown you the steps to lock a file within a SharePoint document library such as:

Steps:

You may also like:

Preeti Sahu is an expert in Power Apps and has over six years of experience working with SharePoint Online and the Power Platform. She is the co-author of Microsoft Power Platform: A Deep Dive book. As a Power Platform developer, she has worked on developing various tools using Power Apps and Power Automate. She also makes Microsoft 365 videos and shares them on YouTube.