Get-MgDeviceManagementRoleDefinition AND Get-MgDeviceManagementRoleAssignment

ComputerHabit 1,021 Reputation points
2025-03-12T20:05:28.1233333+00:00

The description of the MGGraph commands is really poor. I can't find enough examples to determine what the issue us.

Get-MgDeviceManagementRoleDefinition

Get-MgDeviceManagementRoleAssignment

If I use RoleDefinition I get a list of GUIDs and the Display name for the RoleDefinition.
If I use RoleAssignment I get a list of GUIDs and a DisplayName for the RoleAssignment.

Nowhere is there a GUID of the RoleDefinition that matches the RoleAssignment.

I can't find out how to get the details either. I have tried to use the Property switch to get addtional details, but I can't seem to find it.

The way the articles define the switches and additional hash to add it just really hard to follow.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,245 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.