[Solution] How to Bypass PowerApps consent

How to Bypass PowerApps consent

how to bypass PowerApps consent image
PowerApps prompt

When a user starts / opens a PowerApps application for the first time, it asks the user to consent / allow few connectors to which are used in the application. This is because PowerApps applications runs with logged users credential. This connection prompt can be very annoying for end users. However there is a very quick and effective way to bypass this PowerApps consent using PowerShell command. The command which we will be using to bypass this consent is


You need

  • PowerApps module for PowerShell
  • A Global admin account to run the PowerShell command
  • Your App Id and Tenant Id(where the app is deployed)

Steps to Bypass PowerApps consent

  1. First make sure if you have the PowerShell module for PowerApps

To check if a PowerShell module exists, open PowerShell (as an admin) and run the following command
Get-Module -Name Microsoft.PowerApps.Administration.PowerShell -ListAvailable -All

If the returned result is empty or unavailable then you have to install the module. Check below steps to install the module if you do not have it already.

run PowerShell as admin
Check PowerApps PowerShell module to bypass consent
  1. If you do not have the module already, then run the below command to install the module in your PC / Server

Install-ModuleName Microsoft.PowerApps.Administration.PowerShell
Install-ModuleName Microsoft.PowerApps.PowerShellAllowClobber

Install PowerApps Admin PowerShell module to bypass consent
Install PowerShell Admin Module
Install PowerApps PowerShell module to bypass consent prompt
Install PowerShell Module
  1. Once you have the modules installed run the following command with your app id and tenant id

Set-AdminPowerAppApisToBypassConsent -EnvironmentName <environment id> -AppName <app id>

Set-AdminPowerAppsToBypassConsent command to bypass powerapps consent prompt
values are dummy

If you are not sure how to get your app id and tenant id then follow the below simple trick.

Navigate to your PowerApps home page and open the app details for which you want to bypass consent. Next copy the web link from the details page.
The web link should look like below and it should have at least two parameters the app id and tenand id. I have marked both in the below picture, 1 – app id and 2 – tenant id

Open PowerApps Details Page to bypass consent using app id
open the details page
get app id and tenant id for PowerApps consent bypass
PowerApps app id and tenant id from web link

After you successfully run the command, the bypass consent flag will be successfully set for the app. And the users will no longer require to consent for the apps for which SSO (single sign-on) is available.

I hope this has helped you understand how to bypass consent for a PowerApps canvas application. If you find any troubles or unable to follow any step, feel free to use the comments section to ask questions.

Thank you again for reading through, let me know if you liked the document in the comments section.

Author @ramizmollahmd

About Ramiz

Ramiz is a professional working in an MNC as a business and technology consultant for quite a few years now. Ramiz is proficient in various Microsoft tools and technologies. He is a tech enthusiast and an active blogger. Ramiz spends his free time playing games or watching movies. He writes blogs to share his knowledge with the world and to make it a better place to live.

Please Help us Grow!

I hope you have found this article helpful. If you are happy with the document, please use the below links when you buy something from Amazon to help us grow.

Ways to Help

Amazon Affiliate Links

How this works?

Amazon affiliate program gives a small (%)share of price to the referrers, so feel free to buy anything.
Below are some Amazon affiliate links, if you open amazon application/website using these links and buy something, (it can be one of the below items or anything of your choice) Then Amazon will give us a little percentage(%) of the money you spend on Amazon. To know more check this document.

$350-Best Student laptop
Amazon In, Amazon US

$600-Work laptop
Amazon In, Amazon US

$989– High performance
Amazon In, Amazon US

Headset – $15.99
Amazon In, Amazon US

Lightspeed Mouse – $39
Amazon In, Amazon US

Keyboard – $29
Amazon In, Amazon US

The Psychology of Money
Amazon In, Amazon

Atomic Habits:
Amazon In, Amazon

Find Balance and Purpose in Life
Amazon In, Amazon

$30, Smart Watch for Smart you
Amazon In, Amazon US, Amazon UK

Work comfortably with $110
Amazon In, Amazon US, Amazon UK

Exercise at home
Amazon In, Amazon US, Amazon UK

Thank you
For your Contribution

Leave a Comment