0

On our 2013 SharePoint we have set access limitations on specific webparts in the web part gallery so our users weren't presented with this and that webpart, which they did not know how to use.

I've tried Googling and testing whether this same access restrictions are possible in SharePoint Online on Modern Sites, but I can't seem to find it.

I suppose that is because it is not possible and all webparts will always be presented to all users?

3
  • you want to hide webparts on webpart page or in webpart gallery? – Danilo Mar 14 '18 at 8:04
  • Whenever a user wants to add a webpart to a Modern Page, I'd like them not to be able to select, say, Links webpart – thewolf Mar 14 '18 at 9:17
  • Not possible in modern experience. – Gautam Sheth Mar 14 '18 at 14:30
1

It is impossible to restrict access to web parts in modern page:

Here is an article about Supported and unsupported customizations for "modern" pages for your reference:

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-customize-pages

0

It may be possible to hide web parts from certain users by adding a security trimmed stylesheet (or js file) that targets the ones you don't want to give access to. For example this would hide a specific web part from my site's web part adder:

.flexBox_d002ed86.flexBox_45a79255 {display:none;}

You would need to add the SPFX extension that allows you to inject sitewide stylesheets that you can find here: https://tahoeninjas.blog/2018/05/08/inject-custom-css-on-sharepoint-modern-pages-using-spfx-extensions/

And then lock down your custom stylesheet to a specific group. Big miss from Msft - seems like a no brainer this should be a ui option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.