cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SudhirSingare
Advocate I
Advocate I

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
Advocate I
Advocate I

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.

View solution in original post

5 REPLIES 5
sips1
Advocate II
Advocate II

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,

Was this ever resolved? Running into similar issue

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

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

SudhirSingare
Advocate I
Advocate I

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.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,235)