Hide ribbon buttons on Modern Site Pages and Lists

%3CLINGO-SUB%20id%3D%22lingo-sub-128125%22%20slang%3D%22en-US%22%3EHide%20ribbon%20buttons%20on%20Modern%20Site%20Pages%20and%20Lists%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128125%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20community%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDisclaimer%3A%20I%20am%20a%20SP%20Admin%2C%20but%20I%20believe%20that%20the%20solution%20to%20the%20issue%20I%20am%20having%20requires%20custom%20code.%20Hopefully%20you%20can%20point%20me%20in%20the%20right%20direction%20here.%20So%20to%20the%20point%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20I%20hide%20default%20buttons%20showing%20in%20the%20action%20ribbon%20on%20modern%20Pages%20and%20Lists%3F%20My%20main%26nbsp%3Bproblem%20at%20the%20moment%20the%20button%20on%20modern%20pages%20called%20%22Send%20by%20Email%22.%20This%20button%20allows%20any%20user%2C%20even%20if%20they%20have%20%22View%20Only%22%20permissions%20to%20the%20Page%2C%20to%20search%20through%20the%20entire%20O365%20user%20database%20(in%20the%20%22to-field%22)%20and%20find%20names%20of%20users%20outside%20the%20site%20collection(!!!)%20This%20is%20%3CU%3Every%20unexpected%20behaviour%20of%20the%20system%20in%20my%20opinion%3C%2FU%3E.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F24195i7B9C42826B178D29%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22sendbyemail.PNG%22%20title%3D%22sendbyemail.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20trying%20to%20setup%20a%20completely%20separated%20site%20from%20our%20main%20intranet%20environment%20to%20make%20it%20available%20for%20external%20users.%20We%20want%20to%20ensure%20that%20there%20is%26nbsp%3B%3CU%3Eno%20association%3C%2FU%3E%20between%20this%20site%20collection%20and%20the%20rest.%20This%20has%20never%20been%20an%20issue%20in%20the%20classic%20UI%20as%20sharing%20setting%20for%20the%20site%20collection%20would%20stop%20this%20from%20happening%20(and%20yes%2C%20all%20the%20sharing%20settings%20are%20set%20to%20the%20most%20conservative%20option).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdditionally%2C%20we%20are%20trying%20to%20disable%20Flow%20and%20PowerApps%20buttons%20in%20the%20Modern%20lists%2Flibraries%20as%20MSFT%20are%20now%20pushing%20them%20out%20of%20preview%2C%20which%20means%20the%20all%20users%20will%20have%20access%20to%20two%20features%20that%20they%20have%20not%20yet%20been%20introduced%20to%20(compliance%2C%20training%20and%20all%20that%20stuff...).%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F24198iD5D7F4E54B207B81%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22TurnOffPowerAppsFlowButtons.png%22%20title%3D%22TurnOffPowerAppsFlowButtons.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20developers%3A%20can%20you%20save%20us%20or%20are%20we%20doomed%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-129048%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20ribbon%20buttons%20on%20Modern%20Site%20Pages%20and%20Lists%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-129048%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3Bthank%20you%20for%20your%20reply.%20Unfortunately%20that%20will%20not%20help%20any%20longer%20as%20per%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSharePoint%2FPowerApps-and-Flow-buttons-are-graduating-out-of-preview%2Fm-p%2F121526%23M10803%22%20target%3D%22_blank%22%3Ethis%20recent%20article%3C%2FA%3E.%20PowerApps%20and%20Flow%20buttons%20will%20show%20up%20everywhere%20now%20as%20they%20are%20coming%20out%20of%20preview%2C%20and%20they%20are%20not%20conditionally%20showing%2Fhiding%20based%20on%26nbsp%3Blicenses.%20In%20fact%2C%20a%20trial%20license%20will%20be%20applied%20automatically%20to%20non-licenses%20users%20at%20the%20same%20second%20as%20they%20click%20that%20button...%20Basically%2C%20there%20is%20no%20way%20to%20stop%20this%20except%20rolling%20back%20to%20classic.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20to%20be%20honest%2C%20the%20%22Send%20by%20Mail%22%20on%20Site%20Pages%20is%20the%20thing%20bothering%20me%20even%20more%20at%20the%20moment.%20The%20fact%20that%20a%20user%20with%20%22read%20only%22%20access%20to%20that%20specific%20page%20and%20NOTHING%20ELSE%20on%20the%20whole%20tenant%20can%20use%20the%20%22to-field%22%20in%20this%20feature%20and%20get%20the%20NAME%2C%20TITLE%20AND%20EMAIL%20OF%20EVERY%20SINGLE%20USER%20ON%20THE%20WHOLE%20TENANT%20IS%20JUST%20INSANE.%20(Sorry%20for%20that)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20anyway%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128303%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20ribbon%20buttons%20on%20Modern%20Site%20Pages%20and%20Lists%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128303%22%20slang%3D%22en-US%22%3EIn%20regards%20of%20Flow%20and%20PowerApps%20buttons%3A%20Have%20you%20tried%20to%20disable%20both%20services%20in%20your%20tenant%20%2F%20remove%20licenses%20to%20users%3F%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Dear community,

 

Disclaimer: I am a SP Admin, but I believe that the solution to the issue I am having requires custom code. Hopefully you can point me in the right direction here. So to the point:

 

How do I hide default buttons showing in the action ribbon on modern Pages and Lists? My main problem at the moment the button on modern pages called "Send by Email". This button allows any user, even if they have "View Only" permissions to the Page, to search through the entire O365 user database (in the "to-field") and find names of users outside the site collection(!!!) This is very unexpected behaviour of the system in my opinion

 

sendbyemail.PNG

 

 

We are trying to setup a completely separated site from our main intranet environment to make it available for external users. We want to ensure that there is no association between this site collection and the rest. This has never been an issue in the classic UI as sharing setting for the site collection would stop this from happening (and yes, all the sharing settings are set to the most conservative option). 

 

 

Additionally, we are trying to disable Flow and PowerApps buttons in the Modern lists/libraries as MSFT are now pushing them out of preview, which means the all users will have access to two features that they have not yet been introduced to (compliance, training and all that stuff...).

TurnOffPowerAppsFlowButtons.png

 

 

So developers: can you save us or are we doomed?

 

Thank you in advance

2 Replies
Highlighted
In regards of Flow and PowerApps buttons: Have you tried to disable both services in your tenant / remove licenses to users?
Highlighted

@Juan Carlos González Martín thank you for your reply. Unfortunately that will not help any longer as per this recent article. PowerApps and Flow buttons will show up everywhere now as they are coming out of preview, and they are not conditionally showing/hiding based on licenses. In fact, a trial license will be applied automatically to non-licenses users at the same second as they click that button... Basically, there is no way to stop this except rolling back to classic.

 

But to be honest, the "Send by Mail" on Site Pages is the thing bothering me even more at the moment. The fact that a user with "read only" access to that specific page and NOTHING ELSE on the whole tenant can use the "to-field" in this feature and get the NAME, TITLE AND EMAIL OF EVERY SINGLE USER ON THE WHOLE TENANT IS JUST INSANE. (Sorry for that)

 

Thanks anyway