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: Entitlement Name too long #10007

Open RicBruIAI opened 1 week ago

RicBruIAI commented 1 week 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

I am facing an issue on SharePoint administration page, I cannot access to the list of pending API Access requests because of this error popup:

Error ensuring domain-wide principals: Entitlement Name too long. Entitlement: [EncodingVersion=2,EntitlementId=39cb2f57-403c-497d-abcc-f6148c303db0,IsDisabled=False,Name=Accedere all'entità di sicurezza dell'applicazione Web di estendibilità del client di SharePoint Online,Description=Consente all'applicazione di accedere all'entità di sicurezza dell'applicazione Web di estendibilità del client di SharePoint Online per conto dell'utente connesso.,Definition=,ClaimValue=user_impersonation,Origin=,ResourceScopeType=Personal,IsPrivate=False,UserConsentDisplayName=Accedere all'entità di sicurezza dell'applicazione Web di estendibilità del client di SharePoint Online,UserConsentDescription=Consente all'applicazione di accedere all'entità di sicurezza dell'applicazione Web di estendibilità del client di SharePoint Online per conto dell'utente.,DirectAccessGrantTypes=,ImpersonationAccessGrantTypes=[Impersonator=Application,Impersonated=User,skipValueChangeEvent=False],skipValueChangeEvent=False,EntitlementCategory=Default,DependentMicrosoftGraphPermissions=,IsPreauthzOnlyDirectAccessGrant=False,IsPreauthzOnlyImpersonationGrant=False]. paramName: Entitlement.Name, paramValue: , objectType: Microsoft.Online.DirectoryServices.Entitlement

Furthermore, I've noticed that the application: SharePoint Online Client Extensibility Web Application Principal is not created automatically when installing the web part on SharePoint with requests on Graph (it has always worked before today).

NOTICE: "Accedere all'entità di sicurezza dell'applicazione Web di estendibilità del client di SharePoint Online" (the name too long issue) is the Italian translation of "SharePoint Online Client Extensibility Web Application Principal".

8thlm4TK

Steps to reproduce

Just installed a web part on SharePoint AppCatalog and went to the Sharepoint administration page as usual, the error pops-up.

Expected behavior

  1. SharePoint Online Client Extensibility Web Application Principal created successfully;
  2. Can go to the API Access management page and approve pending user_impersonation requests
cpercarb commented 5 days ago

Hello,

We are experiencing the same error in one of our customer’s tenants. This tenant is also in Italian, and the issue began after we deleted the SharePoint Online Web Application Principal and accessed the API page to recreate it automatically.

Please let us know if there are any updates or solutions available.

Thank you.