Disabling modern web parts in SPO

Anjana R 156 Reputation points


Is it possible to disable or hide certain web parts in the list of web parts so that users don't see them while editing the page?

It looks like using Set-SPOTenant command and -DisabledWebPartIds parameter few web parts can be disabled. Similarly, any method to disable Yammer Conversations and Highlights web parts OOTB ?

Also, using the method mentioned here is supported by Microsoft?


A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,548 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yi Lu_MSFT 17,451 Reputation points

    Hi @Anjana R
    Yes, the method provided by Casey is supported by Microsoft.

    The two web parts that are not available in SharePoint for Microsoft 365 modern pages are the Script editor web part and the Content editor web part. However, you could create custom web parts or migrate your existing script editor web parts to the SharePoint Framework.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

  2. Anjana R 156 Reputation points

    @Yi Lu_MSFT - could you please let me know how the steps mentioned in the reference article can be applied to Yammer web parts ?

    0 comments No comments