cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnguilbert190
Frequent Visitor

MS Flow HTTP Request unable to access Azure Function using AD Authentication. Bad Gateway: You do not have permission to view this directory or page

Hi,

I have an Azure function that uses Azure AD Account Authorisation, but I am unable to connect to it from an MS Flow using HTTP Request. I just keep getting the error:

BadGateway. Http request failed as there is an error getting AD OAuth token: 'Failed to extract error details from response content 'You do not have permission to view this directory or page.'.'.

I have AD OAuth Selected and filled in all the fields as per Logic App Example. Even though this is an MS Flow.

Is this to do with the Web.Config in the Azure Function or permissions elsewhere in Azure (API Perms etc)?

Any help appreciated?

Thanks.

John.

2 REPLIES 2
Highlighted
tfhegdbn Helper IV
Helper IV

Re: MS Flow HTTP Request unable to access Azure Function using AD Authentication. Bad Gateway: You do not have permission to view this directory or page

 

Hi,

 

It seems that this seems to be a permission-caused error. Have you tried to do similar tests with the credentials of a user with full permission?

 

johnguilbert197 Advocate I
Advocate I

Re: MS Flow HTTP Request unable to access Azure Function using AD Authentication. Bad Gateway: You do not have permission to view this directory or page

Not tried that. We discussed today and I think this is the issue. Admin has to give permissions for access api. Currently only Contribute Access as Owner of App in App Registration.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,794)