Aug 19 2022 06:01 AM
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 :)
Aug 19 2022 06:55 AM
@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)
Aug 19 2022 06:59 AM
Aug 19 2022 07:33 AM - edited Aug 19 2022 07:58 PM
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.
Aug 19 2022 07:47 AM
@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:
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.
Aug 21 2022 11:00 PM
Aug 21 2022 11:01 PM
Aug 21 2022 11:12 PM
Hi @SYN_Dominik
At the moment, we can only disabled the web parts listed here: https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/set-spotenant?view=sharepoint-p...
May be worth trying by specifying ID of the webpart you want to disable to Set-SPOTenant -DisabledWebPartIds cmdlet, if that works.
Aug 21 2022 11:17 PM
Aug 21 2022 11:25 PM
Hi @SYN_Dominik
The extra web parts you see on the other tenant, must have been added from the SharePoint store.
Aug 21 2022 11:39 PM
Aug 22 2022 12:07 AM
Hi @SYN_Dominik
Once you add a web part to your page, from "view page source" (F12) get the web part id by locating corresponding "data-sp-web-part-id" element.
Pass on the id to Set-SPOTenant -DisabledWebPartIds cmdlet, to see if it works.
Aug 22 2022 12:09 AM
Aug 22 2022 12:26 AM
Aug 22 2022 12:46 AM
Aug 26 2022 03:57 AM
Solution