簡體   English   中英

如何調用 PIM Graph API 端點?

[英]How to call the PIM Graph API endpoints?

我正在嘗試使用 PowerShell 通過 Graph API 調用 PIM(特權身份管理)REST 端點。在 Graph Explorer 中,我嘗試https://graph.microsoft.com/beta/policies/roleManagementPolicies但它返回"{\"errorCode\":\"MissingProvider\",\"message\":\"The provider is missing.\",\"instanceAnnotations\":[]}"

我在 MS 文檔中陷入了困境。 我最接近的是他們建議使用 Powershell SDK,這是新的 Microsoft.graph 模塊。 等效的 cmdlet 是Get-MgPolicyRoleManagementPolicy ,它返回類似的錯誤{"errorCode":"MissingProvider","message":"The provider is missing.","instanceAnnotations":[]} 我無法在任何地方找到如何向它提供缺失的信息。 我知道這是測試版並且非常前沿,但我希望有人已經解決了這個問題並找到了解決方案。 GitHub 上有一個未解決的問題,但作者/所有者明顯缺席

以下查詢將有助於解決問題。

https://graph.microsoft.com/beta/policies/roleManagementPolicies?$filter=scopeId+eq+'/'+and+scopeType+eq+'DirectoryRole'

URL 中需要 scopeId 和 scopeType,將提出 PR 來修復文檔。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM