Disabling PowerApps and Flow in SharePoint Online

%3CLINGO-SUB%20id%3D%22lingo-sub-354700%22%20slang%3D%22en-US%22%3EDisabling%20PowerApps%20and%20Flow%20in%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354700%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20cannot%20use%20PowerApps%20and%20Flow%20in%20our%20organisation.%20I%20have%20seen%20sample%20code%20which%20purports%20to%20disable%20the%20buttons%20on%20lists%20and%20libraries%2C%20like%20this%3A-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%24ctx.Site.DisableAppViews%3C%2FSPAN%3E%20%3CSPAN%3E%3D%3C%2FSPAN%3E%20%3CSPAN%3E%24true%3C%2FSPAN%3E%3CSPAN%3E%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24ctx.Site.DisableFlows%3C%2FSPAN%3E%20%3CSPAN%3E%3D%3C%2FSPAN%3E%20%3CSPAN%3E%24true%3C%2FSPAN%3E%3CSPAN%3E%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24ctx.Web.DisableAppViews%3C%2FSPAN%3E%20%3CSPAN%3E%3D%3C%2FSPAN%3E%20%3CSPAN%3E%24true%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24ctx.Web.DisableFlows%3C%2FSPAN%3E%20%3CSPAN%3E%3D%3C%2FSPAN%3E%20%3CSPAN%3E%24true%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24ctx.Web.Update%3C%2FSPAN%3E%3CSPAN%3E()%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24ctx.ExecuteQuery%3C%2FSPAN%3E%3CSPAN%3E()%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EHowever%20when%20I%20do%20this%2C%20the%20Flow%20buttons%20do%20disappear%20but%20the%20PowerApps%20ones%20do%20now.%20Likewise%20with%20the%20list%20forms%20customisation%2C%20I%20cannot%20turn%20off%20the%20option.%20I%20am%20fairly%20sure%20it%20used%20to%20hide%20both.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EAs%20a%20remediation%20I%20can%20block%20the%20Flow%20and%20PowerApps%20urls%2C%20and%20run%20the%20PowerShell%20make%20sure%20users%20cannot%20initiate%20trial%20licences%20but%20I%20can%20see%20a%20lot%20of%20support%20calls%20being%20generated%20due%20to%20this.%20Is%20there%20some%20way%20to%20globally%20switch%20this%20off%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-354700%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354750%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20PowerApps%20and%20Flow%20in%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354750%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20mean%20from%20the%20users%3F%20They%20have%20no%20licences%20applied%20to%20them%20for%20either%20PowerApps%20or%20Flow%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354737%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20PowerApps%20and%20Flow%20in%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354737%22%20slang%3D%22en-US%22%3EHave%20you%20tried%20removing%20the%20licenses%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-910830%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20PowerApps%20and%20Flow%20in%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-910830%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F198857%22%20target%3D%22_blank%22%3E%40Mark%20Wilson%3C%2FA%3E%2C%26nbsp%3Bunfortunately%20there%20is%20not%20way%20to%20100%25%20remove%20the%20use%20of%20PowerApps%20and%20Flow.%20You%20are%20correct%20that%20by%20removing%20user%20licensing%20and%20disabling%20the%20trial%20features%2C%20you%20can%20help%20decrease%20the%20number%20of%20instances%20where%20these%20get%20used.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20suggest%20setting%20up%20alerts%20through%20the%20Security%20%26amp%3B%20Compliance%20Center%20on%20top%20of%20these%20changes%20to%20monitor%20and%20track%20when%20new%20instances%20get%20created%20at%20a%20minimum%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.technologytobusiness.com%2Fmicrosoft-office-365%2Fdisabling-self-service-trial-for-powerapps-flow-and-power-bi%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDisabling%20Self-Service%20Trial%20for%20PowerApps%2C%20Flow%2C%20and%20Power%20BI%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512055%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20PowerApps%20and%20Flow%20in%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512055%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202509%22%20target%3D%22_blank%22%3E%40Matthew%20DiLiberto%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESeriously%20Micrrosoft%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20guest%20users%20that%20guest%20access%20to%20our%20Sharepoint%20and%20they%20have%20access%20to%20create%20their%20own%20Flows%3F%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

We cannot use PowerApps and Flow in our organisation. I have seen sample code which purports to disable the buttons on lists and libraries, like this:-

 

$ctx.Site.DisableAppViews = $true;
$ctx.Site.DisableFlows = $true;
$ctx.Web.DisableAppViews = $true
$ctx.Web.DisableFlows = $true
$ctx.Web.Update();
$ctx.ExecuteQuery();
 
However when I do this, the Flow buttons do disappear but the PowerApps ones do now. Likewise with the list forms customisation, I cannot turn off the option. I am fairly sure it used to hide both.
 
As a remediation I can block the Flow and PowerApps urls, and run the PowerShell make sure users cannot initiate trial licences but I can see a lot of support calls being generated due to this. Is there some way to globally switch this off? 
4 Replies
Highlighted
Have you tried removing the licenses?
Highlighted

You mean from the users? They have no licences applied to them for either PowerApps or Flow

Highlighted

@Mark Wilson, unfortunately there is not way to 100% remove the use of PowerApps and Flow. You are correct that by removing user licensing and disabling the trial features, you can help decrease the number of instances where these get used. 

 

I suggest setting up alerts through the Security & Compliance Center on top of these changes to monitor and track when new instances get created at a minimum

 

See: Disabling Self-Service Trial for PowerApps, Flow, and Power BI

Highlighted

@Matthew DiLiberto 

Seriously Micrrosoft?

 

We have guest users that guest access to our Sharepoint and they have access to create their own Flows???