web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Data API Connection/AD...
Power Apps
Unanswered

Data API Connection/AD Auth - You do not have permission to view this directory or page

(0) ShareShare
ReportReport
Posted on by 7

Hi,

While testing to invoke an Web API hosted in Azure App service with default AD authetication. we get the below message:

You do not have permission to view this directory or page

Please note that I registered an ad app, I used proper secret key, client id, tenant id and resource (with permission granted to it).

We found that in JWT bearer the audience is always "https://management.core.windows.net" that it might be causing failed authentication.

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    Hi @basmar ,

     

    Can you share more details with your issue?

    From what you said, it seems to be casued by audience because audience represents the intended recipient of the incoming token or the resource that the token grants access to.

    However more information would be better to help with your issue.

    Best regards,
    Sik

  • Verified answer
    basmar Profile Picture
    7 on at

    Hi Sik,

    Thanks for your reply. I already fix the issue by adding the resource "https://management.core.windows.net/" as an audience in my App Service authentication configuration.

  • v-siky-msft Profile Picture
    on at

    Hi @basmar ,

     

    If you have got the answer to your issue, please click on “Accept as Solution” to help other members find it more quickly. 

     

    Best regards,

    Sik

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard