microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
388 stars 341 forks source link

missing scope error when getting acronyms #4029

Closed tiagoduarte closed 1 month ago

tiagoduarte commented 1 month ago

version 4.13.1

configuration 1) add the web part 2) pick "Microsoft Search" from the data sources area 3) pick "Acronyms" from the Entity types to search

behaviour error is shown: Access to Acronym in Graph API requires the following permissions: Acronym.Read.All. However, the application only has the following permissions granted: Calendars.Read, ExternalItem.Read.All, Files.Read.All, Mail.Read, People.Read, Sites.Read.All, User.Read

expected behaviour ability to display acronyms from the system

I would like to suggest that the following scopes are added to the web part: Acronym.Read.All Bookmark.Read.All

In the meantime, is there a way for me to add these scopes myself?

tiagoduarte commented 1 month ago

nevermind, I see that the scopes are already in the AppManifest, so not sure what happened but the error went away after adding the missing scoped manually (https://iamguidozam.blog/2024/02/21/granting-api-permissions-requests-for-spfx/)