0
votes

Is there a way to give Azure Application permissions over Office SharePoint Online API via PowerShell ?
Manually I would:
1. Enter the Azure AD Admin center.
2. Find/Create the application I want to request permissions for.
3. Click on API Access->"Required Permissions"->"+Add" enter image description here

  1. "Select API"->"Office SharePoint Online"->"Select" enter image description here
  2. Choose "Read and write items in all site collections" -> "Select" -> "Done" enter image description here
  3. "Grand Permissions" enter image description here

If Is not possible can please someone give official link that confirms it?

1
This is an old question. Please refer to this one:stackoverflow.com/questions/46125894/…Wayne Yang
BTW, I think Azure AD powershell cannot achieve all of those steps directly,especially granting permissions . Grant permissions uses "Admin Consent",so,you should use &prompt=admin_consent in the auth request directly.Wayne Yang
Wayne, thank you very much for your reply. I already saw examples of achieving similar thing to what i asked with Graph API. But since it requires creating manually Application for Graph API use, and thus the process is not completely automatic, I had to look for different ways such as PowerShell.Natalie Polishuk
Unfortunately, as I known, there is no way to achieve that for now. You can post your idea in this Feedback Forum. Azure AD Team will see it.Wayne Yang

1 Answers

0
votes

Currently there is no way to Grant Permissions without someone with Global Administrator role to go to Azure Portal and click Grant Permissions button. Reference