0

I am trying to remove the New ribbon option from Office 365 Modern pages

enter image description here

I removed the permission for users to contribute and made it read only

I also selected Prevent users from creating Site Pages in O365 Admin portal

But still users are seeing that New button on top. Is there a way to hide it

1

I believe if your users can still see the button and actually click on it and create a new item, the modification you made may not be sufficient for your test users.

However, to answer your question, the only mean for you to hide something on the page (that I know of) would be a SPFx Application Customizer with global css in it. Please note that there will be a delay before such css is loaded (the delay before your JS is dynamically loaded in the page) and that the bar will still appear for the first instants.

You can load such CSS based on whatever condition you want (user not belonging to a group..) using JS and the SharePoint Rest API.

Don't hesitate if you need more info,

Hope this helps!

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.