通过 PowerShell 授予 Azure 应用程序 API 的权限,例如 "Office SharePoint Online"

Give Azure application permissions over API such as "Office SharePoint Online" via PowerShell

是否可以通过 PowerShell 授予 Azure 应用程序对 Office SharePoint Online API 的权限?
手动我会:
1.进入Azure AD管理中心。
2. Find/Create 我要申请权限的应用程序。
3.点击API访问->"Required Permissions"->“+添加”

  1. "Select API"->"Office SharePoint Online"->"Select"
  2. 选择"Read and write items in all site collections" -> "Select" -> "Done"
  3. "Grand Permissions"

如果不行可以请官方link确认一下吗?

目前,如果没有具有全局管理员角色的人转到 Azure 门户并单击“授予权限”按钮,则无法授予权限。 Reference