在不丢失数据的情况下更新 VSTS 用户引用

update VSTS user reference without loosing data

我们目前正在尝试在我们的 Azure 企业协议上收集我们不同团队的服务帐户 (VSTS) 并调整他们的身份验证方法:从个人帐户 (MSA) 转移到 AAD + 来宾(不是那么简单...)。

不幸的是,许多用户的个人帐户 (MSA) 与 AAD(旧子公司)中的电子邮件域不同。

对于从 firstname.lastname@companyB.com 到 firstname.lastname@[ 的一个用户,有没有办法(powershell,API(仅 GET 访问),Microsoft 首映票) =26=] 而不会丢失所有相关内容(工作项、git 提交、build/release 收藏等等)

据我所知,没有任何方法可以实现这一点,因为这不仅仅是一个简单的帐户更改,它与身份、工作项的历史记录和版本控制等很多事情有关。您的方案的解决方法是使用 Microsoft 帐户电子邮件地址将这些用户添加到您的 AAD。有关详细信息,请参阅此 link:Team Services: Access with Azure Active Directory (Azure AD)

What happens to current users?

Your work in Team Services is associated with your sign-in address. After your Team Services account is connected to your directory, users will continue working seamlessly if their sign-in addresses appear in the connected directory. If they don't, you'll have to add those users to your directory. Your organization might have policies about adding users to the directory, so find out more first.

我已经与 VSTS Microsoft 支持人员讨论过,有一种方法可以执行它,但不是我自己。

我们的用户将通过 visualstudio.com firstname.lastname@companyA.com(目的地)连接 'work or school' 创建 visual studio 帐户。

然后 Microsoft 将 运行 在连接到 AAD 后映射脚本将 firstname.lastname@companyB.com 的引用移动到 firstname.lastname@companyA.com.