While sharing Power Apps applications with end users, we might get a consent popup message like the one below. This message asks the user permission to establish a new connection to the application. So, the user needs to connect to whatever connectors the app maker used for that application.
However, sometimes, users do not want to see this consent popup box while sharing the application repeatedly. In that case, we can disable this popup using the PowerShell script. In this article, I will explain how to disable Power Apps permissions popup consent form step by step.
Power Apps Permission Popup Message [Consent Dialog]
While developing a Power Apps application, we are often required to connect our application with SharePoint, Outlook, Office365 user connectors, etc. So, when the end user needs to use that application with his account, he needs to connect to that application.
However, new users might not know why they’re clicking allow; when the app maker adds any new connections again, the end users get this permission message to let those additional connectors in. To avoid this permission popup message, follow the below steps.
1. Make sure you have System Administrator role permissions to do this!. Open the Power Apps application you want to share with end users -> Click on Settings. -> Click on Developer resources.
2. It will open the Developer resources pane, copy the Environment ID, and paste it somewhere to use later.
3. Then, exit the application and click on the ellipses(…) next to it. Click on Details.
4. Copy the App ID present in the down and paste it somewhere (Notepad) to use later.
5. We need to run the PowerShell command below in the editors like Windows Power Shell ISE or Visual Studio code to hide/disable the consent pop-up message.
Here, I’m running this Power Shell code on VS code. After providing the Power Shell command, click on enter.
Set-AdminPowerAppApisToBypassConsent -EnvironmentName Default-798a21d4-ed73-44f4-8cac-c7bde6d52e57 -AppName d6fd9b48-7c5b-4f94-ae6f-2adfb563c557
For the -EnvironmentName parameter in the above command, provide the previously copied environment name in the Power Apps application’s “Developer resources.”
Then, for the -AppName parameter, provide the App ID we copied.
6. Once the command runs successfully, you’ll get the output in the image below.
So, if the app maker adds any new connectors to the Power Apps application again, the above process needs to be repeated to avoid that consent popup message.
I hope you understand how to disable the Power Apps permission popup message using PowerShell. You can follow this article to avoid having this consent popup message visible to end users every time the application is updated with the new connectors.
Also, you may like:
- Build a multilingual app in Power Apps
- Power Apps employee directory
- Create a Power Apps app from template
- Patch Gallery Items in Power Apps
- Power Apps Modern Form Control
I am Bijay a Microsoft MVP (10 times – My MVP Profile) in SharePoint and have more than 17 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com