Use Admin consent in Power Apps application

Power Apps applications are based on graphical components (buttons, text boxes, images, etc.) and connectors (access data from external tools). Those connectors are very easy to set up and use current user data access. When a user accesses a Power Apps application for first time, he gets a popup requesting him to consent.

In fact, users must allow the application to do some actions on their behalf, example: post a message on Yammer, retrieve information from a SharePoint list, etc.

Modal asking for consent

It can be annoying to display this popup to everyone the first time they use the app. You may use admin consent to offer a seamless experience and prevent this modal to be displayed. 


To do this, you must be able to grant consent as Administrator which means you must have one of those roles: Global Administrator, Privileged Role Administrator, Cloud Application Administrator, or Application Administrator. You will use some PowerShell commands with power apps module. To install Power App PowerShell module, go there.

To install Power App PowerShell module, go there.

You will need your Power Apps app ID too. To find this Id, select your app, click on the “three dots” then on “details”.

Selected app form

App ID


Then you run the following command:

Set-AdminPowerAppApisToBypassConsent -AppName xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

You might also be asked for app environment name. If so, use the following command to retrieve your environment name:  Get-AdminPowerAppEnvironment.

Special Notes

In my case, I was using a yammer connection. Yammer is requesting users to sign in. I did not find a way to prevent it. So, my user will still have the popup showing up, but it was much less intimidating.

Yammer consent only
Modal displayed in my case


Popular posts from this blog

Remove News Source Tag Color Block to news web part

Approve and publish SharePoint file using Power Automate

Guest user can't access Client Side Assets resources in SharePoint App Catalog site