How to Disable Power Apps Permissions PopUp Consent Form? [Using PowerShell]

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.

disable the power apps permissions pop-up

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.

powerapps allow permissions message

2. It will open the Developer resources pane, copy the Environment ID, and paste it somewhere to use later.

powerapps canvas app allow permissions

3. Then, exit the application and click on the ellipses() next to it. Click on Details.

how to disable the power apps consent permissions pop-up

4. Copy the App ID present in the down and paste it somewhere (Notepad) to use later.

How to hide consent form in power apps

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.

disable the power apps allow permissions pop-up

6. Once the command runs successfully, you’ll get the output in the image below.

how to disable the power apps permissions pop-up

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:

>