entra-powershell icon indicating copy to clipboard operation
entra-powershell copied to clipboard

Nit: Output for Get-AzureADDirectoryRoleMember not consistent with AzureAD module

Open SteveMutungi254 opened this issue 2 years ago • 4 comments

Command used:

Get-AzureADDirectoryRole | where {$_.DisplayName -eq "Teams Administrator"} | Get-AzureADDirectoryRoleMember

Entra PowerShell:

image

Azure AD:

image

SteveMutungi254 avatar Dec 09 '23 07:12 SteveMutungi254

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 image

Thank You!

snehalkotwal avatar Dec 11 '23 06:12 snehalkotwal

@snehalkotwal Default formatting is missing DisplayName, UserPrincipalName, and UserType properties. AzureAD commands give you all that.

alexandair avatar Dec 11 '23 08:12 alexandair

@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 avatar Dec 19 '23 05:12 v-varshamane

@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.

alexandair avatar Dec 21 '23 00:12 alexandair

This is tracked under the issue - https://github.com/microsoftgraph/entra-powershell/issues/1119 as well as -AppendSelected work in progress.

SteveMutungi254 avatar Feb 23 '25 22:02 SteveMutungi254