Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

reset password in Office356 using Azure Graph API

$
0
0

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.DisplayName = "my test user"; user.GivenName = mytestuser user.Password = "azerty@123"; _AzureLayer.UpdateObject(user, AzureADApiInterface.DirectoryObjectType.Users);

Also, the user object exposes a property user.PasswordPolicies.

What values does it accept?

Thanks.


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>