Skip to content

Commit 63023b6

Browse files
givinalisGivinalis Omachar
andauthored
#1154 - Updated verb on Update-EntraSignedInUserPassword command to Set-EntraSignedInUserPassword (#1516)
Co-authored-by: Givinalis Omachar <giomachar@microsoft.com>
1 parent 3fa0e27 commit 63023b6

File tree

13 files changed

+153
-31
lines changed

13 files changed

+153
-31
lines changed

.config/CredScanSuppressions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
"_justification": "Unit test file has a sample Password used in mocking."
1919
},
2020
{
21-
"file": "test\\Entra\\Users\\Update-EntraSignedInUserPassword.Tests.ps1",
21+
"file": "test\\Entra\\Users\\Set-EntraSignedInUserPassword.Tests.ps1",
2222
"_justification": "Unit test file has a sample Password used in mocking."
2323
},
2424
{
2525
"file": "test\\Entra\\Users\\Update-EntraUserFromFederated.Tests.ps1",
2626
"_justification": "Unit test file has a sample Password used in mocking."
2727
},
2828
{
29-
"file": "test\\EntraBeta\\Users\\Update-EntraBetaSignedInUserPassword.Tests.ps1",
29+
"file": "test\\EntraBeta\\Users\\Set-EntraBetaSignedInUserPassword.Tests.ps1",
3030
"_justification": "Unit test file has a sample Password used in mocking."
3131
},
3232
{

module/Entra/Microsoft.Entra/Enable-EntraAzureADAlias.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function Enable-EntraAzureADAlias {
159159
Set-Alias -Name Get-AzureADDevice -Value Get-EntraDevice -Scope Global -Force
160160
Set-Alias -Name Get-AzureADObjectByObjectId -Value Get-EntraObjectByObjectId -Scope Global -Force
161161
Set-Alias -Name Remove-AzureADMSApplicationPassword -Value Remove-EntraApplicationPassword -Scope Global -Force
162-
Set-Alias -Name Update-AzureADSignedInUserPassword -Value Update-EntraSignedInUserPassword -Scope Global -Force
162+
Set-Alias -Name Update-AzureADSignedInUserPassword -Value Set-EntraSignedInUserPassword -Scope Global -Force
163163
Set-Alias -Name Set-AzureADMSNamedLocationPolicy -Value Set-EntraNamedLocationPolicy -Scope Global -Force
164164
Set-Alias -Name Get-AzureADMSPermissionGrantPolicy -Value Get-EntraPermissionGrantPolicy -Scope Global -Force
165165
Set-Alias -Name Get-AzureADApplicationServiceEndpoint -Value Get-EntraApplicationServiceEndpoint -Scope Global -Force

module/Entra/Microsoft.Entra/Users/Update-EntraSignedInUserPassword.ps1 renamed to module/Entra/Microsoft.Entra/Users/Set-EntraSignedInUserPassword.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Copyright (c) Microsoft Corporation. All Rights Reserved.
33
# Licensed under the MIT License. See License in the project root for license information.
44
# ------------------------------------------------------------------------------
5-
function Update-EntraSignedInUserPassword {
5+
function Set-EntraSignedInUserPassword {
6+
[Alias("Update-EntraSignedInUserPassword")]
67
[CmdletBinding(DefaultParameterSetName = 'Default')]
78
param (
89
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, HelpMessage = "Specifies the new password for the signed-in user.")]
@@ -55,3 +56,4 @@ function Update-EntraSignedInUserPassword {
5556
}
5657
}
5758

59+
Set-Alias -Name Update-EntraSignedInUserPassword -Value Set-EntraSignedInUserPassword -Scope Global -Force

module/Entra/config/moduleMapping.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"Set-EntraUserPassword": "Users",
215215
"Set-EntraUserThumbnailPhoto": "Users",
216216
"Update-EntraOauth2PermissionGrant":"SignIns",
217-
"Update-EntraSignedInUserPassword": "Users",
217+
"Set-EntraSignedInUserPassword": "Users",
218218
"Reset-EntraStrongAuthenticationMethodByUpn": "Authentication",
219219
"Get-EntraAttributeSet": "DirectoryManagement",
220220
"New-EntraAttributeSet": "DirectoryManagement",

module/EntraBeta/Microsoft.Entra.Beta/Users/Update-EntraBetaSignedInUserPassword.ps1 renamed to module/EntraBeta/Microsoft.Entra.Beta/Users/Set-EntraBetaSignedInUserPassword.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All Rights Reserved.
33
# Licensed under the MIT License. See License in the project root for license information.
44
# ------------------------------------------------------------------------------
5-
function Update-EntraBetaSignedInUserPassword {
5+
function Set-EntraBetaSignedInUserPassword {
66
[CmdletBinding(DefaultParameterSetName = 'Default')]
77
param (
88
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, HelpMessage = "Specifies the new password for the signed-in user.")]
@@ -55,3 +55,4 @@ function Update-EntraBetaSignedInUserPassword {
5555
}
5656
}
5757

58+
Set-Alias -Name Update-EntraBetaSignedInUserPassword -Value Set-EntraBetaSignedInUserPassword -Scope Global -Force

module/EntraBeta/UnMappedFiles/Enable-EntraAzureADAlias.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function Enable-EntraAzureADAlias {
158158
Set-Alias -Name Get-AzureADDeviceRegisteredUser -Value Get-EntraBetaDeviceRegisteredUser -Scope Global -Force
159159
Set-Alias -Name Remove-AzureADGroupMember -Value Remove-EntraBetaGroupMember -Scope Global -Force
160160
Set-Alias -Name New-AzureADMSConditionalAccessPolicy -Value New-EntraBetaConditionalAccessPolicy -Scope Global -Force
161-
Set-Alias -Name Update-AzureADSignedInUserPassword -Value Update-EntraBetaSignedInUserPassword -Scope Global -Force
161+
Set-Alias -Name Update-AzureADSignedInUserPassword -Value Set-EntraBetaSignedInUserPassword -Scope Global -Force
162162
Set-Alias -Name Set-AzureADMSAdministrativeUnit -Value Set-EntraBetaAdministrativeUnit -Scope Global -Force
163163
Set-Alias -Name Get-AzureADUserOAuth2PermissionGrant -Value Get-EntraBetaUserOAuth2PermissionGrant -Scope Global -Force
164164
Set-Alias -Name New-AzureADPrivilegedRoleAssignment -Value New-EntraBetaPrivilegedRoleAssignment -Scope Global -Force

module/EntraBeta/config/moduleMapping.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"Set-EntraBetaUserManager": "Users",
2626
"Set-EntraBetaUserPassword": "Users",
2727
"Set-EntraBetaUserThumbnailPhoto": "Users",
28-
"Update-EntraBetaSignedInUserPassword": "Users",
28+
"Set-EntraBetaSignedInUserPassword": "Users",
2929
"Get-EntraBetaGroup": "Groups",
3030
"New-EntraBetaGroup": "Groups",
3131
"Set-EntraBetaGroup": "Groups",

module/docs/entra-powershell-beta/Users/Update-EntraBetaSignedInUserPassword.md renamed to module/docs/entra-powershell-beta/Users/Set-EntraBetaSignedInUserPassword.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: This article provides details on the Update-EntraBetaSignedInUserPassword command.
2+
description: This article provides details on the Set-EntraBetaSignedInUserPassword command.
33
external help file: Microsoft.Entra.Beta.Users-Help.xml
44
Locale: en-US
55
manager: mwongerapk
@@ -8,12 +8,12 @@ ms.author: eunicewaweru
88
ms.date: 07/26/2024
99
ms.reviewer: stevemutungi
1010
ms.topic: reference
11-
online version: https://learn.microsoft.com/powershell/module/Microsoft.Entra.Beta/Update-EntraBetaSignedInUserPassword
11+
online version: https://learn.microsoft.com/powershell/module/Microsoft.Entra.Beta/Set-EntraBetaSignedInUserPassword
1212
schema: 2.0.0
13-
title: Update-EntraBetaSignedInUserPassword
13+
title: Set-EntraBetaSignedInUserPassword
1414
---
1515

16-
# Update-EntraBetaSignedInUserPassword
16+
# Set-EntraBetaSignedInUserPassword
1717

1818
## SYNOPSIS
1919

@@ -22,15 +22,15 @@ Updates the password for the signed-in user.
2222
## SYNTAX
2323

2424
```powershell
25-
Update-EntraBetaSignedInUserPassword
25+
Set-EntraBetaSignedInUserPassword
2626
-CurrentPassword <SecureString>
2727
-NewPassword <SecureString>
2828
[<CommonParameters>]
2929
```
3030

3131
## DESCRIPTION
3232

33-
The `Update-EntraBetaSignedInUserPassword` cmdlet updates the password for the signed-in user in Microsoft Entra ID.
33+
The `Set-EntraBetaSignedInUserPassword` cmdlet with alias `Update-EntraBetaSignedInUserPassword` updates the password for the signed-in user in Microsoft Entra ID.
3434

3535
Enable users to update their own passwords. Any user can change their password without requiring administrator privileges.
3636

@@ -42,7 +42,7 @@ Enable users to update their own passwords. Any user can change their password w
4242
Connect-Entra -Scopes 'Directory.AccessAsUser.All'
4343
$currentPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
4444
$newPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
45-
Update-EntraBetaSignedInUserPassword -CurrentPassword $currentPassword -NewPassword $newPassword
45+
Set-EntraBetaSignedInUserPassword -CurrentPassword $currentPassword -NewPassword $newPassword
4646
```
4747

4848
This example shows how to update the password for the signed-in user.

module/docs/entra-powershell-v1.0/Users/Update-EntraSignedInUserPassword.md renamed to module/docs/entra-powershell-v1.0/Users/Set-EntraSignedInUserPassword.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
author: msewaweru
3-
description: This article provides details on the Update-EntraSignedInUserPassword command.
3+
description: This article provides details on the Set-EntraSignedInUserPassword command.
44
external help file: Microsoft.Entra.Users-Help.xml
55
Locale: en-US
66
manager: mwongerapk
@@ -9,12 +9,12 @@ ms.author: eunicewaweru
99
ms.date: 08/20/2024
1010
ms.reviewer: stevemutungi
1111
ms.topic: reference
12-
online version: https://learn.microsoft.com/powershell/module/Microsoft.Entra/Update-EntraSignedInUserPassword
12+
online version: https://learn.microsoft.com/powershell/module/Microsoft.Entra/Set-EntraSignedInUserPassword
1313
schema: 2.0.0
14-
title: Update-EntraSignedInUserPassword
14+
title: Set-EntraSignedInUserPassword
1515
---
1616

17-
# Update-EntraSignedInUserPassword
17+
# Set-EntraSignedInUserPassword
1818

1919
## SYNOPSIS
2020

@@ -23,15 +23,15 @@ Updates the password for the signed-in user.
2323
## SYNTAX
2424

2525
```powershell
26-
Update-EntraSignedInUserPassword
26+
Set-EntraSignedInUserPassword
2727
-NewPassword <SecureString>
2828
-CurrentPassword <SecureString>
2929
[<CommonParameters>]
3030
```
3131

3232
## DESCRIPTION
3333

34-
The `Update-EntraSignedInUserPassword` cmdlet updates the password for the signed-in user in Microsoft Entra ID.
34+
The `Set-EntraSignedInUserPassword` cmdlet with the alias `Update-EntraSignedInUserPassword` updates the password for the signed-in user in Microsoft Entra ID.
3535

3636
Enable users to update their own passwords. Any user can change their password without requiring administrator privileges.
3737

@@ -43,7 +43,7 @@ Enable users to update their own passwords. Any user can change their password w
4343
Connect-Entra -Scopes 'Directory.AccessAsUser.All'
4444
$currentPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
4545
$newPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
46-
Update-EntraSignedInUserPassword -CurrentPassword $currentPassword -NewPassword $newPassword
46+
Set-EntraSignedInUserPassword -CurrentPassword $currentPassword -NewPassword $newPassword
4747
```
4848

4949
This example shows how to update the password for the signed-in user.

src/AzureADPreviewToEntraBetaMapping.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,5 +310,5 @@
310310
"Set-AzureADUserManager" : "Set-EntraBetaUserManager",
311311
"Set-AzureADUserPassword" : "Set-EntraBetaUserPassword",
312312
"Set-AzureADUserThumbnailPhoto" : "Set-EntraBetaUserThumbnailPhoto",
313-
"Update-AzureADSignedInUserPassword" : "Update-EntraBetaSignedInUserPassword"
313+
"Update-AzureADSignedInUserPassword" : "Set-EntraBetaSignedInUserPassword"
314314
}

0 commit comments

Comments
 (0)