Nit: Output for Get-AzureADDirectoryRoleMember not consistent with AzureAD module
Command used:
Get-AzureADDirectoryRole | where {$_.DisplayName -eq "Teams Administrator"} | Get-AzureADDirectoryRoleMember
Entra PowerShell:
Azure AD:
Hello @SteveMutungi254
Can you please explain in brief what is the exact issue.
Is the issue is regarding to the missing field, please check with the Formatted list .because we are checking the output using Fl .
In mg also we are getting the same output As Entra PowerShell
Thank You!
@snehalkotwal Default formatting is missing DisplayName, UserPrincipalName, and UserType properties. AzureAD commands give you all that.
@SteveMutungi254 as discussed as this module is not the same as AzureAD and it's output may not same as Azure AD output, even being uses as a compatibility layer it just make sense if you are using it for automation and automation does not care about output formatting, the only think we must do us provide the same data to be used. Our cmdlets giving same data like Azure AD data
@v-varshamane It's not just the default formatting. AzureAD command outputs much more properties than Entra/Mg command. For example, the UserType property is missing.
This is tracked under the issue - https://github.com/microsoftgraph/entra-powershell/issues/1119 as well as -AppendSelected work in progress.