Hi,
In our product, we are currently resetting Office365 passwords using Powershell.
We are ready to switch to Azure Graph API to get rid of powershell but we are blocked in the following step since 2 weeks:
When we change a user password using Azure AD Graph api, the useris then prompted to change his password when he logs on.
How can we avoid it? (Just set the password, and do not mark the account for password change at next logon)
Here is the piece of code extracted from the read/write sample posted inMSDN.
user.DisplayNam
e = "my test user"; user.GivenName = mytestuser user.Password = "azerty@123"; _AzureLayer.Upd ateObject(user, AzureADApiInter face.DirectoryO bjectType.Users ); Also, the user object exposes a property user.PasswordPo
licies. What values does it accept?
Thanks.
↧
reset password in Office356 using Azure Graph API
↧