Call Microsoft Graph without an app registration
Quiz question
Why can a Graph request fail with 403 despite an admin role?
Solution
- A) The token lacks the required permissionCorrect. Token permissions limit access. An admin role does not extend them.
- B) Chats cannot be read through Graph at allWrong. Graph does offer chats. Only the matching permission is missing from this connector's token.
- C) The Base Resource URL is set incorrectlyWrong. An incorrect base URL can also cause problems, but does not explain a missing token permission.
What it is about
For Microsoft Graph you normally register an app in Microsoft Entra ID and manage secrets or certificates. The "Invoke an HTTP request" action of the "HTTP with Microsoft Entra ID (preauthorized)" connector handles token acquisition. Sign in and set Base Resource URL and Resource URI to https://graph.microsoft.com. Then choose the method and endpoint, for example GET on /v1.0/me. Access depends on the token permissions. Possible targets include Microsoft Graph or SharePoint, depending on the connector. Check the supported services and permissions for your connector. An admin role does not extend token permissions. Use @odata.nextLink to fetch further pages of a Graph response.
The expression from the tip
https://graph.microsoft.comWhen to use it, when not
Use it
For requests on behalf of the signed-in person, where the connector provides the required permissions.
Better not
When the connector lacks the required permissions or you lack suitable premium usage rights.
Most common mistake
Treating a 403 as a wrong query. If the permission is missing from the token, no other syntax will help.
License
Premium Premium connectors or features require suitable usage rights, for example from Power Automate Premium, Process, Power Apps or Dynamics 365. Check existing licenses in the license check. Source on Microsoft Learn: HTTP with Microsoft Entra ID (preauthorized), Connector-Referenz. For your whole flow: License check.
Share
Short link: powerautomate.ninja/en/138
Source: PowerPlatformTip #138, Microsoft Learn: HTTP with Microsoft Entra ID (preauthorized), Connector-Referenz.
Prefer to continue with guidance? The Power Automate live course (in German) at the Power Platform Academy runs over four weeks. The next dates are not set yet, you can join the waiting list on the course page.