【发布时间】:2020-04-22 02:05:18
【问题描述】:
在彻底寻找解决方案后,我希望得到一些指导。
我希望更新填充在本地广告中的用户管理器属性,但据我所知 azure/365 并未复制此属性。
所以我必须使用下面的代码手动更改它们;
Set-AzureADUserManager -ObjectId "usersid" -RefObjectId "managersid"
一旦我运行它就会失败并出现以下错误;
Code: Request_BadRequest
Message: Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration.
RequestId:
HttpStatusCode: BadRequest
HttpStatusDescription: Bad Request
HttpResponseStatus: Completed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-AzureADUserManager], ApiException
+ FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.SetUserManager
我不确定这是什么问题,因为用户管理器在 Azure 中与 Windows 广告作为源同步。
谢谢。
【问题讨论】:
标签: powershell active-directory azure-active-directory office365 windows-server-2012