Skip to content

Commit 954cf72

Browse files
emmanuel-karanjaKenitoInc
authored andcommitted
Updated to -Select for Beta
1 parent 1be86fb commit 954cf72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module/EntraBeta/Microsoft.Entra.Beta/Users/Update-EntraBetaInvitedUserSponsorsFromInvitedBy.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ function Update-EntraBetaInvitedUserSponsorsFromInvitedBy {
3232
}
3333

3434
if ($all) {
35-
$invitedUsers = Get-EntraBetaUser -Filter $guestFilter -All -ExpandProperty sponsors
35+
$invitedUsers = Get-EntraBetaUser -Filter $guestFilter -All -Select Sponsors
3636
}
3737
else {
3838
foreach ($user in $userId) {
39-
$invitedUsers += Get-EntraBetaUser -UserId $user -ExpandProperty sponsors
39+
$invitedUsers += Get-EntraBetaUser -UserId $user -Select Sponsors
4040
}
4141
}
4242

0 commit comments

Comments
 (0)