Graph API ChangePassword methods doesn't trigger Password Writeback Azure AD Connect.

Ferron Nijland 121 Reputation points

I'm using the .Net Microsoft Graph SDK. When users want to reset their password I call the following method:

client.Me.ChangePassword(current_password, repeat_new_password).Request().PostAsync();

The change is successful and user can sign in with their new password.
Only the new password doesn't work on-premise. After some research I found that the Password Writeback service is not triggered.
When users change their password trough the Office 365 portal it works just fine.
It this by design or should the password writeback be triggered when using the Graph API ChangePassword method?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,748 questions
0 comments No comments
{count} vote

1 additional answer

Sort by: Most helpful
  1. ShashiShailaj-MSFT 7,466 Reputation points Microsoft Employee

    Hello anonymous user ,

    Password Write-back to on-premise from azure is done via Azure AD connect . It also requires Azure AD premium license to be associated for the user on the tenant. While configuring the Azure AD connect the Azure AD Administrator in your organisation can enable Password writeback to the on-premise domain if they have Azure AD premium license associated with the azure AD tenant. The password writeback is an internal operation and not exposed through any API. Azure AD connect runs a thread for password writeback and it automatically updates from azure whenever a password is changed. The service is polled every 2 minutes or so to get any changes in password. You will not be able to get this done programmatically through Graph API as of now. The password writeback must be triggered on Azure Side and then the Azure AD connect will poll that change.

    Hope this clarifies your queries. In case the information provided in any of the posts helps you , please do mark it as answer so that its helpful for other members of the community. If you have any residual queries , please let us know and we will be happy to help .

    Thank you.