change passwordProfile PATCH to expire a password without setting a temporary one
At the moment, a PATCH request on a user object in this form
{
"passwordProfile":
{
"forceChangePasswordNextSignIn": true,
"password" : "aNewPa55w0rd"
}
}
...works. The next time the user logs in, they use the new password and are forced to change it. However, I would like to send
{
"passwordProfile":
{
"forceChangePasswordNextSignIn": true
}
}
which would force a user to change their password, but not have to send them a temporary one. It would be the same as issuing this powershell command:
Set-MsolUserPassword -UserPrincipalName some.user@somedomain.onmicrosoft.com -ForceChangePassword:$true -ForceChangePasswordOnly:$true
2
votes
