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 {
32
32
}
33
33
34
34
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
36
37
}
37
38
else {
38
39
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
40
42
}
41
43
}
42
44
@@ -49,7 +51,7 @@ function Update-EntraBetaInvitedUserSponsorsFromInvitedBy {
49
51
50
52
$splatArgumentsGetInvitedBy = @ {
51
53
Method = ' Get'
52
- Uri = ((Get-MgEnvironment - Name (Get-EntraBetaContext ).Environment).GraphEndpoint +
54
+ Uri = ((Get-EntraEnvironment - Name (Get-EntraContext ).Environment).GraphEndpoint +
53
55
" /beta/users/" + $invitedUser.id + " /invitedBy" )
54
56
}
55
57
@@ -133,3 +135,4 @@ function Get-ObjectPropertyValue {
133
135
}
134
136
}
135
137
}
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