Closed
Description
Describe the bug
I am trying to update user's password in PowerShell 7 with
$PasswordProfile = @{
Password = "P@ssw0rd" # Of course the actual value is randomly generated and way stronger.
ForceChangePasswordNextSignIn = $false
}
Update-MgUser -UserId $User.Id -PasswordProfile $PasswordProfile
ForceChangePasswordNextSignIn
seems to be ignored and user will be asked to change their password on next sign-in.
I suppose New-MgUser
might have the same issue.
Expected behavior
User's password will be updated and will not be asked to change it on next sign-in.
How to reproduce
Execute following in PowerShell:
$PasswordProfile = @{
Password = "P@ssw0rd" # Of course the actual value is randomly generated and way stronger.
ForceChangePasswordNextSignIn = $false
}
Update-MgUser -UserId $User.Id -PasswordProfile $PasswordProfile
User's password will be updated BUT will be asked to change it on next sign-in.
SDK Version
2.26.1
Latest version known to work for scenario above?
No response
Known Workarounds
I reverted my MgGraph modules to the previous version 2.25.0 and it worked as expected.
Debug output
Configuration
No response
Other information
No response