BUG: Permissions reported by Find-MgGraphCommand is not accurate #2657
Michael Liben (mlibenocg)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When I run Find-MgGraphCommand on New-MgUser, it implies that permission DeviceManagementApps.ReadWrite.All is sufficient to run. However, when I log in with that scope and try to create a new user, I get "new-mguser : Insufficient privileges to complete the operation." When I log in with scope User.ReadWrite.All, the same command succeeds.
Find-MgGraphCommand -command New-MgUser | Select -First 1 -ExpandProperty Permissions | Select Name,Description
Name Description
DeviceManagementApps.ReadWrite.All Read and write Microsoft Intune apps
DeviceManagementConfiguration.ReadWrite.All Read and write Microsoft Intune device configuration and policies
DeviceManagementManagedDevices.ReadWrite.All Read and write Microsoft Intune devices
DeviceManagementServiceConfig.ReadWrite.All Read and write Microsoft Intune configuration
Directory.ReadWrite.All Read and write directory data
User.ReadWrite.All Read and write all users' full profiles
All reactions