I couldn’t find this myself quickly in the Microsoft docs. So I decided to write a quick blog about it. This blog is about how to view all API Permissions available for Microsoft Graph via Powershell.
It is a quick short blog. So, I’ll cut to the chase.
You can view all the API permissions available by using the following commands.
Firstly, log on to AZ CLI (if you don’t have Az CLI installed, download it here.)
After that, use the following code to save the permissions to a variable:
$Permissions = az ad sp list --filter "appId eq '00000003-0000-0000-c000-000000000000'" | ConvertFrom-Json
Lastly, use this command to view all the available permissions:
$Permissions.Approles | Select-Object value, id, displayname | Sort-Object -Property Value
This is the result:
Assign Intune Script via Graph
One thought on “View All API Permissions Microsoft Graph”
[…] View All API Permissions Microsoft Graph […]