SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Error ensuring domain-wide principals #9975

Open JeroenMBooij opened 2 weeks ago

JeroenMBooij commented 2 weeks ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

πŸ’₯ SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

Additional environment details

Describe the bug / error

image

Steps to reproduce

  1. Create a Developer tenant in Sharepoint 365

  2. Clone repository from https://github.com/pnp/addin-transformation-guidance/tree/main/samples/Understanding-AAD-OAuth-for-SPFx/Consuming-MSGraph-from-SPFx

  3. Start Consuming-MSGraph-from-SPFx in https://{your_tenant}.sharepoint.com/_layouts/15/workbench.aspx

  4. Get an error message saying: To view the information on this page, ask a Global or SharePoint Administrator in your organization to go to the API management page in the new SharePoint admin center.

  5. Go to the API management page and get the error saying: Error ensuring domain-wide principals

  6. I am also missing the SharePoint Online Client Extensibility Web Application Principal Helper in my Entra Id App registration, but I do have the SharePoint Online Client Extensibility Web Application Principal App registration.

Expected behavior

Able to manage access to Azure AD-secured APIs from SharePoint Framework components

RicBruIAI commented 1 day ago

Hi I've a very very similar issue today, here the details, have you managed to solve this issue? Thanks!

PS: I've also tried this solution but didn't work.