Team Foundation Server could not resolve the user or group ‘XXX’. The user or group might be a member of a different domain, or the server might not have access to that domain. Verify the domain membership of the server and any domain trusts.
By: Date: 20.03.2015 Categories: !RUS,TFS Метки:

При попытке добавить пользователя через GUI Visual Studio — Group Membership получаю ошибку:

Team Foundation Server could not resolve the user or group ‘XXX’. The user or group might be a member of a different domain, or the server might not have access to that domain. Verify the domain membership of the server and any domain trusts.

image

У меня нет домена на сервере (просто рабочая группа). Пользователь ничем не отличается от любого другого, который добавляется без ошибки. Короче говоря — это какой-то глюк.

Добавил этого пользователя в группу с помощью TfsSecurity.exe (Using the Team Foundation Server Security Tool — TFSSECURITY.EXE или Changing Groups and Permissions with TFSSecurity).

Вот так:

c:\Program Files\Microsoft Team Foundation Server 2010\Tools>TfsSecurity.exe /g+ [PROJ_NAME]\Contributors n:user_name /collection:http://tfs:8080/tfs/DefaultCollection

где

PROJ_NAME — Имя проекта
user_name — имя пользователя в формате DOMEN_NAME\user_name
   где DOMEN_NAME — Имя домена или имя сервера (если рабочая группа)
http://tfs:8080/tfs/DefaultCollection — это адрес коллекции проектов (можно посмотреть в VS)

image

Это помогло.