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"
- "Select API"->"Office SharePoint Online"->"Select"
- Choose "Read and write items in all site collections" -> "Select" -> "Done"
- "Grand Permissions"
If Is not possible can please someone give official link that confirms it?
&prompt=admin_consent
in the auth request directly. – Wayne Yang