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. 

Prerequisites

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 make.powerapps.com


App ID

Execution

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









Comments

  1. If you 우리카지노 want tables, we’ve received your sport, whether it's Blackjack, Craps, Roulette, Spanish 21, Pai Gow or Poker. In addition, penny slots have the lowest odds, with $1 and $5 slots paying much better. Plus, may be} playing in} against only the vendor, not hooded poker champions. •Gambling was sometimes motivated by a want to win cash, which isn't possible in games. Over-under bets, also known as total bets, are a wager that the factors total for a sport might be bigger or smaller than a sportsbook predicts. To say casino gambling is a lucrative business could be an understatement.

    ReplyDelete

Post a Comment

Popular posts from this blog

Remove News Source Tag Color Block to news web part

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

Approve and publish SharePoint file using Power Automate