az ad app permission add - Insufficient privileges to complete the operation

谁说我不能喝 提交于 2021-01-27 19:44:34

问题


I'm getting ERROR: Insufficient privileges to complete the operation. when running az ad app permission add

What permission do I need to grant my service principal for this to work?

I gave it the AppRoleAssignment.ReadWrite.All permission which says:

Allows the app to manage permission grants for application permissions to any API (including Microsoft Graph) and application assignments for any app, on behalf of the signed-in user.

Update: I also gave it Application.ReadWrite.All, but still getting the error.


回答1:


I also gave it Application.ReadWrite.All, but still getting the error.

The Application.ReadWrite.All Application permission is enough. I suppose you gave the Application.ReadWrite.All permission in Microsoft Graph, it will not work. You need to use the Application.ReadWrite.All in Azure AD Graph, then it will work.

After giving the permission, wait for a while, run the command, it returns a warning, refresh the portal, you will find the API permission was added.



来源:https://stackoverflow.com/questions/59185434/az-ad-app-permission-add-insufficient-privileges-to-complete-the-operation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!