Hi,
To stop users from sharing files and folders in SharePoint, you have several options:
For site-level restrictions:
- Go to the SharePoint site, click the gear icon, and select "Site permissions"
- Under "Sharing settings," select "Change how members can share"
- Choose "Only site owners can share files, folders, and the site"
Turn off "Allow access requests" toggle to completely disable the 'Share' option2
Click "Save" to apply these changes2
Using PowerShell (for administrators):
powershell
Set-SPOSite -Identity <siteurl> -DisableSharingForNonOwners
This sets sharing permissions to "Only site owners can share files, folders, and the site"2
For organization-wide restrictions:
- In SharePoint admin center, go to Policies > Sharing
- Under "External sharing," set the SharePoint slider to "Only people in your organization"
- Click "Save".
For specific sites:
- In SharePoint admin center, go to Sites > Active sites
- Select the site you want to configure
- On the Settings tab, under "External file sharing," choose "Only people in your organization"
- Click "Save"
Note that while you can restrict sharing at the site level, there's no built-in option to specifically disable folder sharing while allowing file sharing1. For more granular control, consider using sensitivity labels or reorganizing your content into separate libraries with appropriate permissions1.