Disabling modern web parts in SPO

Anjana R 156 Reputation points
2022-02-12T02:05:32.737+00:00

Hello,

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?

Thanks.

SharePoint
SharePoint
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
    2022-02-14T06:16:47.06+00:00

    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
    2022-03-02T19:03:21.42+00:00

    @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