Hide Power Apps and Power Automate (Flow) in SharePoint Online

Hey folks,

today i will show you how you could hide the buttons for Flow (Power Automate) and Power Apps in your SharePoint site. We will need the SharePoint Online PnP PowerShell (check out this GitHub site for more information: https://github.com/SharePoint/PnP-PowerShell). To install the module you can use:

Install-Module SharePointPnPPowerShellOnline

After this connect to your SharePoint site and make a change to the following options:

Connect-PnPOnline –Url https://<tenantname>.sharepoint.com/sites/<sitename> –Credentials (Get-Credential)
$ctx = Get-PnPContext
$ctx.Site.DisableAppViews = $true;
$ctx.Site.DisableFlows = $true;
SharePoint list with Flow and Power Apps visible
SharePoint list with Flow and Power Apps hidden
Customize forms could not be hidden
SharePoint library with Flow visible
(Power Apps button maybe will come later this/next year)
SharePoint library with Flow hidden

This will hide the Flow and Power Apps buttons from your whole site, currently it is not supported to disable Flow or PowerApps just for one list or librabry, so you could only disable or enable it (just change $true to $false) for the Site/Site Collection. Your Flows and Power Apps will work as well in background, this commands just hide the buttons in the UI. If the users open Power Automate or Power Apps by using the waffle menu, they can still access these services. Also if the user opens “https://flow.microsoft.com” or “https://powerapps.microsoft.com” they can sign in with there account and could get a free trial license (if they don’t have a license assigned). For more information check out this Q&A: Flow in your organization Q&A 

11 Gedanken zu „Hide Power Apps and Power Automate (Flow) in SharePoint Online“

  1. Do you know how to “Hide Power Apps and Power Automate..” when MFA is enabled on the account? I am getting an error about the account when I try to connect.


    1. Hey Susannah,
      thanks for your question. If you use MFA, you maybe receive an error if you execute the “Connect-PnPOnline” command, right? When entering the credentials within the little form, use the app password instead of your user password from when you had registered MFA. Then you should be able to connect to the Power Shell.

      I hope this will help you!


        1. Hey TJ,
          what kind of actions are available in your SPO site, when Power Apps button is still showing? When executing the command it will hide the action “see all apps” but not “Customize forms” as mentioned in the post.
          I tested it on my site and still the same behavior.

  2. Hi,

    If I have 5 or 6 subsites do I need to do for each site or is there any way that if I do it for main site the buttons disappears from all?

    Also in case of HUB as well?

    1. Hey Ramiz,
      you could use with a foreach and connect to each site and disable it.
      This should also work for Hubs as well, but it will not inherit from the Hub, you need to turn it off on each site.

  3. Thank you for this post. Unfortunately, this doesn’t work for me.

    Exception calling “ExecuteQuery” with 0 arguments: “The remoteserver returned an error (401).

    PowerApp button is still visible in my site. Any ideas?

    1. Hey Michael,
      after which command do you receive the exception?
      Is Power Automate also still visible or only Power Apps? As mentioned in the article, you cannot completely hide the Power Apps button, you will always see the “Customize Forms” button.

    1. Hi Alexandre,
      unfortunately I found out, that this PowerShell does not work anymore for any reason. The options are still there, but they will not hide anymore.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.