sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

webApiPermissionRequests "resource" property

Open aaronmi opened this issue 6 years ago • 6 comments

Regarding webApiPermissionRequests/"resource" property, doc: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient#request-permissions-to-an-azure-ad-application says it should be the displayName of the application. Here (https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient-enterpriseapi#request-permissions-to-the-enterprise-api) it says it can be either displayName or ID. It's confusiong. Should it always be displayName?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

aaronmi avatar Dec 17 '19 22:12 aaronmi

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Dec 17 '19 22:12 msft-github-bot

It should be the display name, NOT the GUID. The GUID was an option in the dev preview.

Currently researching something else about that doc... once that's confirmed I'll get it updated.

andrewconnell avatar Dec 18 '19 10:12 andrewconnell

It should be the Name of the specified app, not the GUID.

andrewconnell avatar Dec 18 '19 18:12 andrewconnell

it does not seem to work to request access to Dynamics CRM like this. { "resource": "Dynamics CRM", "scope": "user_impersonation" }

Had to manually add this on the registered app in azure AD

Ballzer0 avatar Jan 15 '20 12:01 Ballzer0

I am seeing HTTP 400 while approving web API request in admin center. What might be causing this?

ajashish7 avatar Jan 17 '20 20:01 ajashish7

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 25 '20 00:01 msft-github-bot