Forum Discussion

SYN_Dominik's avatar
SYN_Dominik
Brass Contributor
Aug 19, 2022

How to disable Advanced web parts?

Hi all, 

in Teams I can disable all the apps I don't want my users to use. But is this possible in SharePoint as well? 

For example in the web part overview I find a lot of third party stuff 

 

I only found something for three of the web parts using powershell and the web part ID but this is not working for all of the 3rd party web parts. 

 

Thanks alot for some hints 🙂 

  • These web parts are only visible in team sites. Not in communication sites. Thats the reason why I was able to post a screenshot without the webparts.
    I decided now for the following solution:
    All these webarts I want to remove are powered by Office 365 connectors. They can be disabled with Set-OrganizationConfig -ConnectorsEnabledForSharePoint $false. This command is available in the EXO module. The webparts are still visible but they show a error message if someone tries to use them.
  • SYN_Dominik You can disable the advanced web parts using PowerShell command: Set-SPOTenant 

     

    You need to set the -DisabledWebPartIds property with the GUID of web parts. For example GUID of few web parts are:

    • Amazon Kindle: 46698648-fcd5-41fc-9526-c7f7b2ace919
    • YouTube: 544dd15b-cf3c-441b-96da-004d5a8cea1d
    • Twitter: f6fdf4f8-4a24-437b-a127-32e66a5dd9b4
    • Embed: 490d7c76-1824-45b2-9de3-676421c997fa
    • Microsoft Bookings: d24a7165-c455-4d43-8bc8-fedb04d6c1b5
    • Stream: 275c0095-a77e-4f6d-a2a0-6a7626911518

    For more information, check this documentation: Set-SPOTenant 


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    SYN_Dominik make sure you only give your users read permission so they can't edit pages and therefore can't access the available web parts.

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

    • SYN_Dominik's avatar
      SYN_Dominik
      Brass Contributor
      Hi Rob,
      unfortunately this solves my problem only for my sites. I am the admin and want to make sure that these web parts cant be used at any site.
  • SYN_Dominik 

    If you are looking out for an option to limit the custom web parts to certain set of users, follow below steps:

     

    1. In the SharePoint Tenant app catalog, go to classic experience.

    2. In the classic experience, select the sppkg and click Share.

    3. Share it with set of users, you want to have access.

     

    Hope this helps.

    • SYN_Dominik's avatar
      SYN_Dominik
      Brass Contributor
      Hi, unfortunately it doesn't since I am not using Custom Apps. I want to disable the Office 365 Connectors which are operating the most of the webparts of my screenshot.
  • SYN_Dominik's avatar
    SYN_Dominik
    Brass Contributor
    These web parts are only visible in team sites. Not in communication sites. Thats the reason why I was able to post a screenshot without the webparts.
    I decided now for the following solution:
    All these webarts I want to remove are powered by Office 365 connectors. They can be disabled with Set-OrganizationConfig -ConnectorsEnabledForSharePoint $false. This command is available in the EXO module. The webparts are still visible but they show a error message if someone tries to use them.

Resources