Forum Discussion

O365User_45787's avatar
O365User_45787
Copper Contributor
Aug 09, 2023

Prevent Users from Opening Teams enabled SharePoint sites in SharePoint

A lot of my users will access Teams enabled SharePoint sites via SharePoint in the browser and create folders outside of the Teams channels and assign unique permissions.  Consequently, these folders/files are not visible to users accessing the site in Teams and it causes a lot of confusion.  Is it possible to restrict the opening of a Teams enabled SharePoint site in the browser, so that users can only access the site through Teams?

  • SvenSieverding's avatar
    SvenSieverding
    Bronze Contributor

    Hi O365User_45787 ,

     

    If you know how to create SPFX customizations then you could create an application customizer (https://learn.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-extension) and automatically deploy that to all sites.
    The customizer should check if that is site that has a team and then automatically redirect the user somewhere else.

    But I think it would be better to invest that time into better user trainings.

    Sometimes it makes sense to create additional ressources in SharePoint and add them to teams. You could for example create a new document library for invoices and add additional metadata columns. Then you can add that document library as a new Tab to the team. The result would be an invoice database.

    Disabling the SharePoint view for your users will not even completely fix your problem. Your users can still use the Move/Copy functionalities in teams to move files into folders that are not visible by the teams file view.  And if these users don't know about SharePoint they might get really confused about that.

    Best Regards,
    Sven

Resources