(相關於this question)天青AD應用preconsent不工作
我有應該是所有客戶租戶自動可用的應用程序,並且因此試圖this tutorial啓用preconsent
。
做的PowerShell命令,並再次獲得該應用程序後,我可以看到,它已啓用:
PS C:\Windows\system32> $graphResponse.value.recordConsentConditions
SilentConsentForPartnerManagedApp
然而,當創建一個新的租戶(或者使用現有的一個),並試圖訪問微軟圖表的/用戶呼叫,我收到500錯誤,直到我導航到https://login.windows.net/common/oauth2/authorize?response_type=code&client_id={0}&prompt=admin_consent({0}
是應用程序的cliendId
),以管理員身份登錄並接受委派。
我錯過了一步嗎?
這不是一個錯誤,而是一個我們正在處理的缺失功能。這是這個博客中的一個缺口:https://dev.office.com/blogs/microsoft-graph-or-azure-adgraph –