Skip to content

Update-MgUser Setting password forcechangepassword false bug report #3270

@wongcc2012

Description

@wongcc2012

Describe the bug

When user signin, user forced to change password (your password is expired...)

Expected behavior

User sign in to O365 services without changing password.

How to reproduce

$UserPassProfile = @{
Password = $_.UserPass #Define password IN CSV file
ForceChangePasswordNextSignIn = $False #Change password True or False
}

Update-MgUser -UserId $_.UPN -PasswordProfile $UserPassProfile

(Setting a pre-defined password for a $UPN user, without enforced user change password when next sign in)

SDK Version

2.26.1

Latest version known to work for scenario above?

2.25.0

Known Workarounds

uninstall all graph.api powershell modules, install a older version

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions