Requests to MS Graph API gives me “Authorization Request Denied - Insufficient privileges to complete the operation”

前端 未结 1 1823
醉话见心
醉话见心 2021-01-15 00:02

I have a question about \"Authorization Request Denied - Insufficient privileges to complete the operation\" message that I keep getting back from my requests to Windows Gra

相关标签:
1条回答
  • 2021-01-15 00:22

    You can try to upgrade the role of the AD application you use to a administrator permission. Run the following commands in PowerShell:

    Connect-MsolService
    $ClientIdWebApp = '{your_AD_application_client_id}'
    $webApp = Get-MsolServicePrincipal –AppPrincipalId $ClientIdWebApp
    #use Add-MsolRoleMember to add it to "Company Administrator" role).
    Add-MsolRoleMember -RoleName "Company Administrator" -RoleMemberType ServicePrincipal -RoleMemberObjectId $webApp.ObjectId 
    
    0 讨论(0)
提交回复
热议问题