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

New Contributor
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/


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




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

$ctx = Get-PnPContext

#$ctx.Site.DisableAppViews = $false;

$ctx.Site.DisableFlows = $false;





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