
Thank you for your support.
I have a question about integrating a Power Automate Custom Connector with the Microsoft Graph API.
I would like to pass an Entra ID access token obtained via a Power Automate custom connector to my custom API, and then use that token to call Microsoft Graph API (mainly to retrieve documents from SharePoint).
I implemented the solution with the following flow:
・Authorization: Bearer {access token}When calling Microsoft Graph API from the custom API, the following error occurs:
{
"error": {
"code": "InvalidAuthenticationToken",
"message": "Access token validation failure. Invalid audience."
}
}
After inspecting the access token issued for the custom connector, I confirmed the audience (aud) claim is:
On the other hand, I understand Microsoft Graph requires the following audience:
Therefore, I believe the authentication error is caused by an audience mismatch.
I think the token obtained by the Power Automate custom connector is intended for the Power Platform execution infrastructure (apihub), and cannot be used directly with Microsoft Graph API.
I would appreciate your guidance on the following:
For this scenario (Custom Connector → Custom API → Graph), what is the Microsoft-recommended implementation pattern?
Examples:
Using only OAuth authentication in a Power Automate custom connector, is it possible to obtain an access token whose audience is Microsoft Graph (https://graph.microsoft.com)?
I would like to clarify one of the following:
Thank you in advance for your support.