Skip to content

Microsoft.Graph.Users 2.26.1 Update-MgUser PasswordProfile Parameter Ignoring ForceChangePasswordNextSignIn = $false #3215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
papageno opened this issue Mar 7, 2025 · 1 comment
Assignees
Labels
type:bug A broken experience

Comments

@papageno
Copy link

papageno commented Mar 7, 2025

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

@papageno papageno added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Mar 7, 2025
@timayabi2020 timayabi2020 removed the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Mar 17, 2025
@timayabi2020 timayabi2020 self-assigned this Mar 17, 2025
@timayabi2020
Copy link
Contributor

Issue resolved by #3224 and will be available in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

2 participants