Home ยป [Permanent Solution] How to Bypass PowerApps consent

[Permanent Solution] How to Bypass PowerApps consent

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
Set-AdminPowerAppApisToBypassConsent

PowerApps consent bypass image
PowerApps prompt

Prerequisites

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.

newbietechie.com_run-powershell-as-admin
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.


Newbietechie.com
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.

How to help?

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.

Laptops & Accessories

$350-Best Daily Use Laptop
Amazon In, Amazon US, Amazon UK

$600-Work From Home laptop
Amazon In, Amazon US, Amazon UK

$949-Best entry level Gaming
Amazon In, Amazon US, Amazon UK

$9 – Ergonomic Laptop Stand
Amazon In, Amazon US, Amazon UK

$1250 – High-end Gaming Laptop
Amazon In, Amazon US, Amazon UK

For the Gamer in you

Pro Gaming Headset – $29.99
Amazon In, Amazon US, Amazon UK

Logitech G304 Lightspeed – $39
Amazon In, Amazon US, Amazon UK

Mechanical Gaming Keyboard – $99
Amazon In, Amazon US, Amazon UK

Reading is a Very Good Habit!

The Psychology of Money
Amazon In, Amazon US, Amazon UK

Atomic Habits: #bestseller
Amazon In, Amazon US, Amazon UK

Find Balance and Purpose in Life
Amazon In, Amazon US, Amazon UK

Powerful Self Help Guide
Amazon In, Amazon US, Amazon UK

Improve Business communication
Amazon In, Amazon US, Amazon UK

Famous Dale Carnegie
Amazon In, Amazon US, Amazon UK

Stay Fit, Stay Healthy

$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

More Ways to Help

Thank you
For your Contribution

Leave a Comment