Bypass consent popups in Power Apps

Posted by

Sharing a Power App grants the user the right to run the Power App. However, when the user runs the Power App for the first time, he/she needs to approve the connections that the Power App connects with.

You can turn this consent prompt off by executing the following script.


  1. Only Office 365 Global admins or Azure Active Directory Global admins can perform this action.
  2. The person running the script should be added as a co-owner of the App


Install-Module -Name Microsoft.PowerApps.Administration.PowerShell

Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber


Set-AdminPowerAppApisToBypassConsent -AppName <App Id> -EnvironmentName <Env Id>

You can get the App Id from the Power Apps portal

You can get the Environment Name by running the following Powershell cmdlet


If you do not get any results back, probably you do not have admin rights

Leave a Reply

Your email address will not be published. Required fields are marked *