File tree Expand file tree Collapse file tree 4 files changed +6
-329
lines changed
EntraBeta/Microsoft.Entra.Beta/Users
Entra/Microsoft.Entra/Users
docs/entra-powershell-v1.0/Users Expand file tree Collapse file tree 4 files changed +6
-329
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,11 +32,13 @@ function Update-EntraBetaInvitedUserSponsorsFromInvitedBy {
3232 }
3333
3434 if ($all ) {
35- $invitedUsers = Get-EntraBetaUser - Filter $guestFilter - All - Select Sponsors
35+ # TODO: Change to Get-EntraBetaUser when -ExpandProperty is implemented
36+ $invitedUsers = Get-MgUser - Filter $guestFilter - All - ExpandProperty Sponsors
3637 }
3738 else {
3839 foreach ($user in $userId ) {
39- $invitedUsers += Get-EntraBetaUser - UserId $user - Select Sponsors
40+ # TODO: Change to Get-EntraBetaUser when -ExpandProperty is implemented
41+ $invitedUsers += Get-MgUser - UserId $user - ExpandProperty Sponsors
4042 }
4143 }
4244
@@ -49,7 +51,7 @@ function Update-EntraBetaInvitedUserSponsorsFromInvitedBy {
4951
5052 $splatArgumentsGetInvitedBy = @ {
5153 Method = ' Get'
52- Uri = ((Get-MgEnvironment - Name (Get-EntraBetaContext ).Environment).GraphEndpoint +
54+ Uri = ((Get-EntraEnvironment - Name (Get-EntraContext ).Environment).GraphEndpoint +
5355 " /beta/users/" + $invitedUser.id + " /invitedBy" )
5456 }
5557
@@ -133,3 +135,4 @@ function Get-ObjectPropertyValue {
133135 }
134136 }
135137}
138+
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments