Skip to content

Instantly share code, notes, and snippets.

@jorgeasaurus
Last active August 31, 2024 18:13
Show Gist options
  • Save jorgeasaurus/f7adb07fa23ae896bd85c9071a22c9de to your computer and use it in GitHub Desktop.
Save jorgeasaurus/f7adb07fa23ae896bd85c9071a22c9de to your computer and use it in GitHub Desktop.
Powershell tip: Quickly find required Microsoft Graph API permissions for a list of graph cmdlets.
"Get-MgBetaUser",
"Get-MgBetagroup",
"Sync-MgBetaDeviceManagementDepOnboardingSettingWithAppleDeviceEnrollmentProgram",
"Get-MgBetaDeviceAppManagementMobileApp",
"Sync-MgBetaDeviceAppManagementVppTokenLicense",
"Get-MgBetaDeviceAppManagementVppToken" | % {
$cmdlet = $_
Find-MgGraphCommand $cmdlet | select -ExpandProperty Permissions
} | Sort-Object Name -Unique
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment