0

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

0

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

| improve this answer | |
0

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

| improve this answer | |
New contributor
Olga Sukhoverkhaya is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.