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 / Active directory custo...
Power Apps
Unanswered

Active directory custom connector : you do not have permission to view this directory or page.

(0) ShareShare
ReportReport
Posted on by 15

Hi,

We continue to have authentication problems with OAuth Custom Connector, as mentionned in this post we encounter issue when we are trying to use OAuth Generic Connector.

 

https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/When-using-Oauth2-generic-connector-AADSTS90014-The-request-body/m-p/380597#M110448

 

Se we tried to use the Azure active directory connector, but we found out new issue. This time the connection was created successfully, but when we try to call our api we receive a generic error.

 

See screenshots below :

 

powerapps_2_1.pngpowerapps_2_2.pngpowerapps_2_3.png

 

 

When we are trying our api we receive from the connector Test Page :

 

You do not have permission to view this directory or page.

 

I checked the bearer token sent to the Api and it seems that it doesn't send the good audience in the bearer token :

powerapps_2_4.png

 

When we are getting the token from PostMan the audience is the ressource the token is intented for.

 

powerapps_2_5.png

 

What am I missing ? Or do I misunderstand something ? 

 

Thanks.

 

 

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

    Hi @quentin-roger ,

    Do you mean that you have to permission to your api connector?

    Please check:

    whether you have added the resource as an audience in your App Service authentication configuration

    I also find some docs about how to grant permissions to users to use the Azure AD connector  for your reference:

    https://alextofan.com/2019/02/06/how-to-grant-permissions-to-users-to-use-the-azure-ad-connector-in-flow/

    https://sachinbansal.blog/2018/08/23/powerapps-secure-your-azure-function-and-custom-connector-with-azure-ad/

    https://sharepoint-specialist.nu/custom-connector-authentication-to-the-graph-microsoftflow-468b494d15bf

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    Hi @quentin-roger how are you progressing with this? Was the above reply helpful?

     

    @Anonymous 

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard