Forum Discussion

Juan M Baena's avatar
Juan M Baena
Iron Contributor
Jan 15, 2019
Solved

Hide Web Parts

Good Day:

 

Last year we noticed in our admin center site, a message posted in the message center about a new capability that will allow in using PowerShell for hiding web parts that do not consume Microsoft services, for example the Twitter web part of the Kindle web part or the YouTube web part.  As anyone been able to test this out successfully and or been able to determine the full list of web parts that may be eligible for being hidden via PowerShell? Thank you!

  • Yes...a quick search on the Internet will lead yo to this page about Set-SPOSite: https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/set-sposite?view=sharepoint-ps

    You will find there the following:
    -DisabledWebpartIds
    This parameter is used for enabling disabled web parts that use third-party service (Amazon Kindle, YouTube, Twitter). The GUIDs that can be used are 46698648-fcd5-41fc-9526-c7f7b2ace919 (Amazon Kindle), 544dd15b-cf3c-441b-96da-004d5a8cea1d (YouTube), f6fdf4f8-4a24-437b-a127-32e66a5dd9b4 (Twitter).

    The Set-SPOTenant cmdlet is used for disabling these web parts with third-party services.

4 Replies

Resources