Question

In the SharePoint online admin center, I'm unable to approve API access for my SharePoint spfx app. I keep getting this error: 'resourceid cannot be empty'

The app already works on another tenant. I am tenant and SharePoint admin.

Any idea's what I'm missing?

Screenshot:

enter image description here

Was it helpful?

Solution

It is probably another error. I suggest you try to approve with powershell, this will give you a better error message. I had the same issue, and the reason was that I missed one space in the resource name. With powershell, I got a better error message.

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient#manage-permissions-with-powershell

OTHER TIPS

Above issue occur, if resource Id is not correct. When we define permission in Package.Json "webApiPermissionRequests": [ { "resource": "spfx", "scope": "user_impersonation" } ]

Resource means your Azure Active Directory instance name. It should match and scope should also be defined in that AAD instance.

Screen Shot FYR. enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top