SharePoint Preauthorization Error in Power Apps Code App #321
|
Hi everyone, I'm encountering an error when connecting my Power Apps Code App to SharePoint. The error message reads: Error: AADSTS65002: Consent between first party application '9cee029c-6210-4654-90bb-17e6e9d36617' and first party resource 'd93420f9-abc8-46b7-b7fc-30ec1f007ee2' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API. Trace ID: 4089baec-fafb-47e1-a011-7f5e482a1300 Correlation ID: 6074b7a1-2057-40ef-8a7f-28e8288358a6 Timestamp: 2026-05-11 02:27:25Z Trace ID Correlation ID Requesting App Target Resource Timestamp (UTC) Refer: AADSTS65002 Power Platform (Code Apps) This issue appears to be specific to SharePoint — other connectors seem to work fine. Has anyone else run into this? Is there a known workaround or a required preauthorization step I'm missing? Any help would be appreciated. Thanks! |
Replies: 1 comment
|
This GCC preauthorization issue was addressed through a service-side rollout. Please retry with the latest Power Apps CLI. SharePoint data sources are supported using pa connection create and pa app add data-source Documentation: |
This GCC preauthorization issue was addressed through a service-side rollout. Please retry with the latest Power Apps CLI. SharePoint data sources are supported using pa connection create and pa app add data-source
Documentation:
https://learn.microsoft.com/power-apps/developer/code-apps/how-to/create-connection
https://learn.microsoft.com/power-apps/developer/code-apps/how-to/connect-to-data