How can we hide New/Upload button in modern document library experience?
-
02-01-2021 - |
Question
I am having 3 document libraries each one for Image, Document and Video. I know how to hide these New/Upload options in classic mode DOc libs.
Can someone suggest me what is the best way & how to achieve Hiding 'New' or 'Upload' button from modern experience in a doc lib
Solution
You have two options to hide New/Upload
Manage permission for this library by
breaking the inheritance
and provide the user/groupView Only
Permission Level. Check the detail steps at Disable "new document" in document library for specific usersReference third-party CSS styles in SharePoint Framework Extension/ web parts
Unfortunately, in Modern Experience, you can't customize the page to add JS or custom CSS as we did in classic mode, meanwhile, you can Reference third-party CSS styles in SharePoint Framework web parts. check also