Hide PowerAutomate/Integrate and Automate options on ribbon for SharePoint List

%3CLINGO-SUB%20id%3D%22lingo-sub-2899159%22%20slang%3D%22en-US%22%3EHide%20PowerAutomate%2FIntegrate%20and%20Automate%20options%20on%20ribbon%20for%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2899159%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3EHello%20Team%2C%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CP%3EI%20want%20to%20hide%2Fdisable%20the%20Power%20Automate%2FIntegrate%20options%20in%20Site%20collection%2FSP%20List%20for%20modern%20sites%2C%20know%20that%20there%20is%20no%20out%20of%20box%20feature%20to%20hide%2C%20but%20tried%20by%20using%20PNP%20Powershell%20even%20though%20there%20is%20no%20luck.%20If%20anyone%20come%20across%20this%20kind%20of%20requirement.%20Please%20help!!%3C%2FP%3E%3CP%3EFor%20reference%2C%20please%20check%20the%20attached%20image%20for%20hiding%20the%20ribbon%20elements.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%2C%20if%20we%20can%20hide%20whole%20power%20platforms%20options%20from%20SP%20list%20ribbon%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETried%20by%20using%20below%20script%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConnect-SPOService%20-Url%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fxxxx-admin.xxxx.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fxxxx-admin.xxxx.com%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%24SiteUrl%3D%22%3CA%20href%3D%22https%3A%2F%2Fxxxx-sharepoint.com%2Fsites%2Fxxxx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fxxxx-sharepoint.com%2Fsites%2Fxxxx%3C%2FA%3E%22%3C%2FP%3E%3CP%3E%24val%20%3D%20%5BMicrosoft.Online.SharePoint.TenantAdministration.FlowsPolicy%5D%3A%3ADisabled%3CBR%20%2F%3ESet-SPOSite%20-Identity%20%24SiteUrl%20-DisableFlows%20%24val%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EPNP%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConnect-PnPOnline%20%E2%80%93Url%20%3CA%20href%3D%22https%3A%2F%2Fxxxx.sharepoint.com%2Fsites%2Fxxx-UseWebLogin%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fxxxx.sharepoint.com%2Fsites%2Fxxx-UseWebLogin%3C%2FA%3E%3C%2FP%3E%3CP%3E%24ctx%20%3D%20Get-PnPContext%3C%2FP%3E%3CP%3E%23%24ctx.Site.DisableAppViews%20%3D%20%24false%3B%3C%2FP%3E%3CP%3E%24ctx.Site.DisableFlows%20%3D%20%24false%3B%3C%2FP%3E%3CP%3E%24ctx.ExecuteQuery()%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3ESurya%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2899159%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Regular Visitor
Hello Team,

I want to hide/disable the Power Automate/Integrate options in Site collection/SP List for modern sites, know that there is no out of box feature to hide, but tried by using PNP Powershell even though there is no luck. If anyone come across this kind of requirement. Please help!!

For reference, please check the attached image for hiding the ribbon elements.

 

Please let me know, if we can hide whole power platforms options from SP list ribbon

 

Tried by using below script

 

Connect-SPOService -Url https://xxxx-admin.xxxx.com/

$SiteUrl="https://xxxx-sharepoint.com/sites/xxxx"

$val = [Microsoft.Online.SharePoint.TenantAdministration.FlowsPolicy]::Disabled
Set-SPOSite -Identity $SiteUrl -DisableFlows $val

 

PNP

 

Connect-PnPOnline –Url https://xxxx.sharepoint.com/sites/xxx-UseWebLogin

$ctx = Get-PnPContext

#$ctx.Site.DisableAppViews = $false;

$ctx.Site.DisableFlows = $false;

$ctx.ExecuteQuery();

 

Thanks

Surya

1 Reply

Hi @Surya0684 

 

There is not way to hide these menus out of the box. We have hidden menus (commands) in modern document libraries in the past using CSS injection.

 

Use your browser's Developer Tools to find suitable identifiers or CSS selectors for the menu items and then create CSS to specify the display: none; style.

 

This is absolutely an unsupported approach and could break at any time should Microsoft change how these menu items are represented in the DOM. Please only do this if absolutely necessary as you may be creating a maintenance headache for yourself in the long run. If at all possible I would suggest either training users to ignore these menus, or give them some examples of how that can use the automation menus in a productive manner. 

 

See this article for implementation and heed their warnings!: Inject Custom CSS on SharePoint Modern Pages using SPFx Extensions – Tahoe Ninjas