Introduction
By default, SharePoint provides the option to share documents with external users. Some of the customers, however, do not want to share documents with external users.
One of our customers asked us to stop the external sharing for a particular site collection. We followed the below steps to stop the external sharing of the document.
Steps to disable the sharing option from Site Collection
Step 1. Open your O365 Admin Center.
Step 2. Select the "SharePoint" option from left navigation, as shown below. You will be navigated to a list of site collections.
Step 3. Here, you can select the desired site collection for which you want to stop sharing with external users.
Step 4. Then, select the "Sharing" option from the ribbon tab container; you will get a pop-up box.
Step 5. On the pop-up window, select “Don’t allow sharing outside your organization”.
When you select that option, you will get an alert message as shown below.
Step 6. Click “OK” if you want to proceed with the disabling option.
Step 7. Click "Save" to update the changes.
Hereafter, you won't be able to share the documents with external users from the disabled site collections. When trying to share the document with external users from the disabled site collection, you will receive the following message.
“Your organization policies don’t allow you to share with these users. Go to external sharing in the Office 365 admin center to enable it”.
Steps to disable the external sharing option from the organization
So far, we have seen the steps to disable external sharing from a particular site collection. Now, we are going to see the steps to disable the organization.
Step 1. Open your O365 Admin Center.
Step 2. Click "SharePoint" from the left navigation.
Step 3. On the SharePoint Admin Center, select the Sharing option from the left menu.
Step 4. Then, select the “Don't allow sharing outside your organization” radio button from the Sharing outside organization category.
Step 5. Click the “OK” button to save changes.
Finally, you have disabled external sharing of the documents at the organizational level from your tenant.
If you want to enable it, just select the “Allow sharing option“ from the Admin center.
Summary
In this article, we have explored how to disable external sharing from the organization and stop sharing documents from a particular site collection using the SharePoint Admin Center.
Please provide the comments or feedback you have after reading this article. Happy learning.