Sharing and access to files not working

James James 0 Reputation points
2025-02-27T11:18:11.03+00:00

Hello

Please i need your help on this issue.

We are having problems with Sharepoint and access to files and folders.

We want to stop users from sharing files and folders in our organization

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,366 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumit 831 Reputation points
    2025-02-27T11:28:27.9233333+00:00

    Hi,

    To stop users from sharing files and folders in SharePoint, you have several options:

    For site-level restrictions:

    1. Go to the SharePoint site, click the gear icon, and select "Site permissions"
    2. Under "Sharing settings," select "Change how members can share"
    3. 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.