msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Get-MgRoleManagementDirectoryRole* under wrong package

Open willfiddes opened this issue 2 years ago • 1 comments

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

willfiddes avatar May 20 '22 17:05 willfiddes

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.

peombwa avatar Jun 08 '22 23:06 peombwa

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: image image

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.

peombwa avatar Jan 24 '23 20:01 peombwa

Issue is resolved in PowerShell v2

CarolKigoonya avatar Aug 15 '23 12:08 CarolKigoonya