File tree Expand file tree Collapse file tree
EntraBeta/Microsoft.Entra.Beta/Users
Entra/Microsoft.Entra/Users
entra-powershell-beta/Users
entra-powershell-v1.0/Users Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ function Update-EntraInvitedUserSponsorsFromInvitedBy {
7070 $dirObj = @ {" sponsors@odata.bind" = @ ($sponsorUrl ) }
7171 $sponsorsRequestBody = $dirObj | ConvertTo-Json
7272
73- Update -EntraUser - UserId $invitedUser.id - BodyParameter $sponsorsRequestBody - Header $customHeaders
73+ Set -EntraUser - UserId $invitedUser.id - BodyParameter $sponsorsRequestBody - Header $customHeaders
7474 Write-Output " $ ( $invitedUser.userPrincipalName ) - Sponsor updated successfully for this user."
7575 }
7676 catch {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ function Update-EntraBetaInvitedUserSponsorsFromInvitedBy {
6969 $dirObj = @ {" sponsors@odata.bind" = @ ($sponsorUrl ) }
7070 $sponsorsRequestBody = $dirObj | ConvertTo-Json
7171
72- Update -EntraUser - UserId $invitedUser.id - BodyParameter $sponsorsRequestBody - Header $customHeaders
72+ Set -EntraUser - UserId $invitedUser.id - BodyParameter $sponsorsRequestBody - Header $customHeaders
7373 Write-Output " $ ( $invitedUser.userPrincipalName ) - Sponsor updated successfully for this user."
7474 }
7575 catch {
Original file line number Diff line number Diff line change @@ -116,5 +116,4 @@ None.
116116
117117[Get-EntraUser](Get-EntraBetaUser.md)
118118
119- [Update-EntraUser](Update-EntraBetaUser.md)
120-
119+ [Set-EntraUser](Set-EntraBetaUser.md)
Original file line number Diff line number Diff line change @@ -116,5 +116,4 @@ None.
116116
117117[Get-EntraUser](Get-EntraUser.md)
118118
119- [Update-EntraUser](Update-EntraUser.md)
120-
119+ [Set-EntraUser](Set-EntraUser.md)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ BeforeAll {
1515 Mock - CommandName Invoke-MgGraphRequest - MockWith {
1616 @ { value = @ { id = " 456" } }
1717 } - ModuleName Microsoft.Entra.Users
18- Mock - CommandName Update -EntraUser - MockWith { $true } - ModuleName Microsoft.Entra.Users
18+ Mock - CommandName Set -EntraUser - MockWith { $true } - ModuleName Microsoft.Entra.Users
1919}
2020
2121Describe " Update-EntraInvitedUserSponsorsFromInvitedBy" {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ BeforeAll {
1515 Mock - CommandName Invoke-MgGraphRequest - MockWith {
1616 @ { value = @ { id = " 456" } }
1717 } - ModuleName Microsoft.Graph.Beta.Users
18- Mock - CommandName Update -EntraBetaUser - MockWith { $true } - ModuleName Microsoft.Entra.Beta.Users
18+ Mock - CommandName Set -EntraBetaUser - MockWith { $true } - ModuleName Microsoft.Entra.Beta.Users
1919}
2020
2121Describe " Update-EntraBetaInvitedUserSponsorsFromInvitedBy" {
You can’t perform that action at this time.
0 commit comments