Everybody likes privacy, so are the business files. Nobody would grant our files to be accessed or searched in any of the mighty SharePoint search engines. It safeguards business files from unessential accessing, thus benefits uncompromized security for the users. SharePoint implementation provides multiple layers of protection in terms of security and privacy. Here are few approaches in preventing documents from appearing in search results in SharePoint.
3 Ways to Prevent Documents Appears in SharePoint Search Results
1. Create Exclusive Permissions For a Document Library or Folder
The files are permission driven in SharePoint, to prevent the documents you have to set an exclusive permissions for a given site, library or folder. This will prevent the documents from surfacing up in a keyword search to those who don’t have access to it. However, if you want to restraint exclusive permissions for a specific library or folder, few instructions to follow:
Create Unique Permissions For a Library
- Navigate to the SharePoint Document Library where you want to set exclusive permissions
- Click Library tab > Library Settings
- Click on Permissions for this document library
- One should notice that, by default, the library obtains permission from the parent (parent being the site). So that it intends that whatever security you set up at the site level propagates to the document library and all the files and folders underneath.
- We need to breach that inheritance. Click on Stop Inheriting Permissions
- Press OK button when you see a pop-up
- Next, you can add/remove groups and users as per your wish. Changes you make here will only impact the library and its contents, nothing will be changed on the site. Being said that, if you decide to click on a security group and add/remove users from it, the change will impact all places where the group is used. So it is wise enough to remove existing groups from the library and create new ones or add users outside of the group as necessary.
Create Unique Permissions for a SharePoint Folder
- Click the checkbox next to the folder you want to hide, then “i” icon
- Click on Manage access
- On the next screen, you can manage exclusive permissions for the folder by removing users/groups from it or adding others.
- You can also press on Advanced at the bottom of above pop-up that will open “classical” security management page. From there, you can remove groups and members, same as document libraries above. All the changes you make will only impact that folder.
2. Library Level Disabling Search Indexing
Another option is to leave security as it is, but prevent the document from being indexed (picked up) by the SharePoint search engine. To do this:
- Navigate to the library
- Click Library tab > Library Settings
- Click on Advanced settings
- Scroll down to the middle of the page to the Search section and change the radio button for Allow items from this document library to appear in SharePoint search results?from Yes (default) to No
- Click OK at the bottom
3. Site Level Disabling Search Indexing
Similar to above option, you can prevent the whole site from appearing in search. To do this follow the below steps
- Gear Icon > Site Settings
- Under Search, click on Search and offline availability
- In the Indexing Site Content section, change Allow this site to appear in search results? from Yes (default) to No
Notes: Just like with the document library above, the site might still be accessible (unless you set unique security for it) by others. The change above will only prevent site contents from appearing in the keyword search.