File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ Function Invoke-ListUsers {
23
23
$GraphRequest = if ($TenantFilter -ne ' AllTenants' ) {
24
24
New-GraphGetRequest - uri " https://graph.microsoft.com/beta/users/$ ( $userid ) ?`$ top=999&`$ filter=$GraphFilter &`$ count=true" - tenantid $TenantFilter - ComplexFilter | ForEach-Object {
25
25
$_ | Add-Member - MemberType NoteProperty - Name ' onPremisesSyncEnabled' - Value ([bool ]($_.onPremisesSyncEnabled )) - Force
26
- $_ | Add-Member - MemberType NoteProperty - Name ' UserName ' - Value ($_.userPrincipalName -split ' @' | Select-Object - First 1 ) - Force
26
+ $_ | Add-Member - MemberType NoteProperty - Name ' username ' - Value ($_.userPrincipalName -split ' @' | Select-Object - First 1 ) - Force
27
27
$_ | Add-Member - MemberType NoteProperty - Name ' Aliases' - Value ($_.ProxyAddresses -join ' , ' ) - Force
28
28
$SkuID = $_.AssignedLicenses.skuid
29
29
$_ | Add-Member - MemberType NoteProperty - Name ' LicJoined' - Value (($ConvertTable | Where-Object { $_.guid -in $skuid }).' Product_Display_Name' -join ' , ' ) - Force
30
- $_ | Add-Member - MemberType NoteProperty - Name ' primDomain' - Value ($_.userPrincipalName -split ' @' | Select-Object - Last 1 ) - Force
30
+ $_ | Add-Member - MemberType NoteProperty - Name ' primDomain' - Value @ { value = ($_.userPrincipalName -split ' @' | Select-Object - Last 1 ); label = ( $_ .userPrincipalName -split ' @ ' | Select-Object - Last 1 ); } - Force
31
31
$_
32
32
}
33
33
} else {
@@ -43,7 +43,7 @@ Function Invoke-ListUsers {
43
43
$_.Aliases = $_.Proxyaddresses -join ' , '
44
44
$SkuID = $_.AssignedLicenses.skuid
45
45
$_.LicJoined = ($ConvertTable | Where-Object { $_.guid -in $skuid }).' Product_Display_Name' -join ' , '
46
- $_.primDomain = ($_.userPrincipalName -split ' @' | Select-Object - Last 1 )
46
+ $_.primDomain = @ { value = ($_.userPrincipalName -split ' @' | Select-Object - Last 1 ) }
47
47
$_
48
48
}
49
49
}
You can’t perform that action at this time.
0 commit comments