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
- 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
- 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.
- If you do not have the module already, then run the below command to install the module in your PC / Server
Install-Module –Name Microsoft.PowerApps.Administration.PowerShell
Install-Module –Name Microsoft.PowerApps.PowerShell –AllowClobber
- 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>
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
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.
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.