VSTS登录失败,未授权401-[用户]具有多个关联的帐户 [英] VSTS login fails with 401 not authorized - [user] has multiple accounts associated with it

查看:52
本文介绍了VSTS登录失败,未授权401-[用户]具有多个关联的帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试为我们域中的新用户提供对VSTS的访问权限.我们通过MPN具有MSDN企业订阅.如果用户使用其工作帐户登录my.visualstudio.com,则该订阅已分配并且对用户可见.如果用户尝试通过[ourprojects..visualstudio.com]访问VSTS,则会收到"VSTS登录失败,未授权401的消息-[用户]具有多个帐户.您的工作或学校帐户无权访问[ourprojects] .visualstudio.com,但您的个人帐户无权访问..

I try to give new users in our domain access to our VSTS. We have MSDN enterprise subscriptions via MPN. The subscription is assigned and visible for the user if he logs in my.visualstudio.com with his work account. If the user tries to access the VSTS at [ourprojects].visualstudio.com he gets "VSTS login fails with 401 not authorized – [user] has multiple accounts associated with it. Your work or school account does not have access to [ourprojects].visualstudio.com, but your personal account does have access. ".

按照错误消息的建议登录个人帐户会导致另一个错误:此Microsoft帐户不存在."这是对的.负责的帐户绝对是Microsoft Azure Active Directory中的工作帐户.因此,第一个错误消息有些奇怪,并导致错误的方向.

Signing in with the personal account as suggested by the error message leads to another error: "This Microsoft account does not exist." This is correct. The account in charge is definitely a work account in Microsoft Azure Active Directory. So the first error message is somehow strange and leads into the wrong direction.

我们的域帐户与Azure Active Directory(AAD)同步.我可以在我们的域和AAD中看到新用户.用户可以使用他的工作帐户登录my.visualstudio.com.因此,与Windows Server AD和AAD同步看起来可以正常工作.MSDN分配也可以.

Our domain accounts are synchronized with Azure Active Directory (AAD). I can see the new users both in our domain and AAD. The user can login into my.visualstudio.com with his work account. So sync with Windows Server AD and AAD looks working correctly. MSDN assignment works, too.

登录my.visualstudio.com会重定向到我们域的登录页面.这是corect,效果很好.但是这种重定向不会登录到VSTS.

Loggin into my.visualstudio.com redirects to the login page of our domain. thsi is corect and works fine. But this redirect does not take place loggin into VSTS.

对于我们域中的其他旧帐户,使用工作帐户的VSTS访问完全可以正常工作.有人遇到过类似的问题吗?

For other older accounts in our domain VSTS access with work account works completely fine. Has anybody experienced similar problems?

推荐答案

最后,我与Microsoft支持小组进行了交谈.事实证明,此VSTS帐户不受Azure Active Directory的支持.必须对其进行转换才能这样做.

Finally I talked to Microsoft support. It turned out that this VSTS account is not backed by Azure Active Directory. It has to be converted to do so.

要检查AAD是否支持Azure DevOps/VSTS帐户,可以在最底部查看Azure DevOps的设置页面(齿轮"->设置").

To check if a Azure DevOps/VSTS account is backed by AAD, you can look in the settings page ("gears"->Settings) of Azure DevOps at the very bottom.

这篇关于VSTS登录失败,未授权401-[用户]具有多个关联的帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆