entra-powershell icon indicating copy to clipboard operation
entra-powershell copied to clipboard

[1.0.1] Inconsistent verbs for changing user's password

Open alexandair opened this issue 11 months ago • 1 comments

Set to change users' password. Update to change signed-in user's password.

PS> gcm *entra*user*password

 Name                                    
 ----                                    
 Set-EntraBetaUserPassword                      
 Set-EntraUserPassword                   
 Update-EntraBetaSignedInUserPassword    
 Update-EntraSignedInUserPassword

alexandair avatar Feb 10 '25 22:02 alexandair

Just double-checking for reference: https://github.com/microsoftgraph/entra-powershell/blob/main/development-docs/design-guidelines/cmdlet-best-practices.md

Set vs. Update

If your cmdlet is performing a PATCH operation (_that is, a partial replacement on the server), then the cmdlet should use the verb Update.

If your cmdlet is performing a PUT operation (_that is, a full replacement on the server), the cmdlet should use the verb Set.

SamErde avatar Feb 10 '25 23:02 SamErde

This is linked to issue: #1154 which was closed by this change #1516 . The updated naming is published under of v1.0.11

givinalis avatar Aug 26 '25 08:08 givinalis