AADSTS65002: Consent between first party application and first party resource must be configured via preauthorization

Chris Eaheart 0 Reputation points
2025-05-09T11:40:25.8066667+00:00

We are leveraging Power Automate workflows that have an HTTP trigger in our custom SPFx web parts. We are trying to flip these from anonymous access (Anyone) to Someone in the Tenant for security. To do so, we must obtain a Bearer token from the Flow service to pass down to the Power Automate workflow. When we try to do this, we see the following error:

AADSTS65002: Consent between first party application '08e18876-6177-487e-b8b5-cf950c1e598c' and first party resource '7df0a125-d3be-4c96-aa54-591f83ff541c' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.

These GUIDs represent the SharePoint Online Web Client Extensibility and Flow Service enterprise applications in Azure. These enterprise applications are in every tenant. How do we preauthorize consent between these two applications?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,604 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.