Azure AD application preconsent not working

后端 未结 2 1332
抹茶落季
抹茶落季 2021-01-24 21:41

(Related to this question)

I have an application that should be automatically usable for all customer tenants, and therefore tried this tutorial to enable preconse

相关标签:
2条回答
  • 2021-01-24 22:02

    After a contact with Microsoft support, this is a bug on their side. They told me yesterday that the engineer team acknowledged it. It will be fixed.

    0 讨论(0)
  • 2021-01-24 22:16

    In order to query the MS Graph, your app will need to be granted the appropriate permissions by an end user or by an administrator of the tenant. Usually the best way to acquire consent from an administrator is by using the prompt=admin_consent parameter, as you've done above.

    If for some reason you must do so via powershell, you can create an oAuth2PermissionGrant object using a consentType of AllPrincipals.

    Personally I wouldn't recommend using the recordConsentConditions property. It's only there for legacy reasons - I don't even know what it does.

    0 讨论(0)
提交回复
热议问题