cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SudhirSingare
Level: Powered On

Getting error in Set-AdminPowerAppApisToBypassConsent powershell command.

To avoid powerapps permission to allow every connection.

I was trying this powershell command:

 

Set-AdminPowerAppApisToBypassConsent -AppName 4ecb503a-2405-42b1-affd-3210728429a9

 

But i am getting below error.

 

PS C:\Windows\system32> Set-AdminPowerAppApisToBypassConsent -AppName 4ecb503a-2405-42b1-affd-3210728429a9
Invoke-WebRequest : {"error":{"code":"EnvironmentAccess","message":"The user with object id
'd253a596-1501-4d2d-9c54-3a6682ced26f' in tenant '7db30361-ce9f-4244-8d28-60553bffff38' does not have access to
permission 'Set PowerApps Connection Direct Consent Bypass' in environment

 

Is this permission related issue ?

 

What permissions do you need to be able to run this command?
Or what kind of powerapp lincence do you need ?

 

Any help would be appriciated.

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
SudhirSingare
Level: Powered On

Re: Getting error in Set-AdminPowerAppApisToBypassConsent powershell command.

This issue not resolved for me. but know you need o365 tenant administrator permission to do this.

 

If you can access this:  https://yourtenant-admin.sharepoint.com

Then you can.

5 REPLIES 5
sips1
Level: Powered On

Re: Getting error in Set-AdminPowerAppApisToBypassConsent powershell command.

Hi,

 

Any feedback on this?  I know that an Office 365 Global Admin could perform this task however is it possible to do this if a user account is not Global Admin?

 

I have tested with an account that is not Global Admin but is System Administrator of the PowerApps environment without success.  I get the same error message.

 

Thanks,

Sburuin
Level: Power Up

Re: Getting error in Set-AdminPowerAppApisToBypassConsent powershell command.

Was this ever resolved? Running into similar issue

SudhirSingare
Level: Powered On

Re: Getting error in Set-AdminPowerAppApisToBypassConsent powershell command.

Not resolved for me. I convinced business for same. Smiley Sad

SudhirSingare
Level: Powered On

Re: Getting error in Set-AdminPowerAppApisToBypassConsent powershell command.

Sorry for late reply. Not resolved for me. I convinced business for same. Smiley Sad

SudhirSingare
Level: Powered On

Re: Getting error in Set-AdminPowerAppApisToBypassConsent powershell command.

This issue not resolved for me. but know you need o365 tenant administrator permission to do this.

 

If you can access this:  https://yourtenant-admin.sharepoint.com

Then you can.

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 424 members 5,851 guests
Please welcome our newest community members: