我必须以更新Azure上的密码,个人资料下面的代码:Azure的图形API - 更改密码不起作用
ActiveDirectoryClient client = AuthenticationHelper.GetActiveDirectoryClient();
IUser toUpdate = await client.Users.GetByObjectId(user.ObjectId).ExecuteAsync();
toUpdate.PasswordProfile = new PasswordProfile()
{
ForceChangePasswordNextLogin = false,
Password = password
};
toUpdate.UpdateAsync().Wait();
显然我能够改变天青(云)的用户密码,但它不会回写到本地Active Directory。我已经查看了Azure Coennect中的设置,并且选中了PasswordWriteBack选项。
您使用AAD Premium版吗?原因[密码写回](https://docs.microsoft.com/en-us/azure/active-directory/active-directory-passwords/#what-is-possible-with-azure-ad-password-reset)要求Azure AD Premium。 – forester123
感谢您的回复,并且我正在使用AAD Premium,还配置了密码重设。 –