msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Get-MgRoleManagementDirectoryRole* under wrong package
The "MgRoleManagementDirectoryRole" cmdlets appears to fall under the "Microsoft.Graph.DeviceManagement.Enrolment" package which is not right.
They should technically fall under "Microsoft.Graph.Identity.DirectoryManagement"
Azure AD Role management is not part of Intune or Enrollment
Thanks for bringing this to our attention.
We will review the module mapping in the next major update to avoid breaking change - https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/838.
@maisarissi, we need to settle on long term module mapping approach to remain consistent with APIs.
We currently have the commands in Identity.Governance
module as there is no way to disambiguate between /roleManagement/directory/*
and /roleManagement/entitlementManagement/*
, since they share the same "root"/OpenAPI tag - roleManagement.rbacApplication
:
The current module classification model uses OpenAPI tags to split the paths into modules using the module mapping config at https://github.com/microsoftgraph/msgraph-sdk-powershell/blob/features/2.0/config/ModulesMapping.jsonc.
We will keep the issue open as a tracking item to review the current module naming model.
Issue is resolved in PowerShell v2