我在哪里管理 TFS 用户的电子邮件地址? [英] Where do I administer the email addresses of TFS users?

查看:59
本文介绍了我在哪里管理 TFS 用户的电子邮件地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Team Foundation Server 中,我有一个包含团队项目的集合.这个团队项目有几个贡献者.以下代码行获取该项目的所有贡献者:

In my Team Foundation Server, I have a collection containing a Team Project. This Team Project has several contributors. The following lines of code get all contributors of that project:

TfsTeamProjectCollection collection = new TfsTeamProjectCollection(new Uri("http://tfs:8080/tfs/CollectionName"));

IGroupSecurityService groupSecurityService = collection.GetService<IGroupSecurityService>();

Identity contributors = groupSecurityService.ReadIdentity(SearchFactor.AccountName, "[ProjectName]\\Contributors", QueryMembership.Expanded);

Identity[] members = groupSecurityService.ReadIdentities(SearchFactor.Sid, contributors.Members, QueryMembership.None);

members 中的每个身份都有一个属性 MailAddress,在我的例子中它等于 string.Empty.

Each Identity in members has a Property MailAddress, which in my case is equal to string.Empty.

我在哪里管理这些邮件地址?

Where do I administrate those mail addresses?

我的第一个想法是在开始->管理工具->计算机管理->用户中查看用户

My first idea was to have a look at the users in Start->Administrative Tools->Computer Management->Users

我选择了其中一位用户并打开了他的属性.我认为 TFS 可能会采用电子邮件属性.但我找不到一个.

I selected one of the users and opened his properties. I thought there might be an email property that the TFS would take. But I couldn't find one.

然后我打开 TFS 管理控制台,查找组成员并导航到其中一个用户.也无法编辑属性.

Then I opened the TFS Administration Console, looked for Group Membership and navigated to one of the users. There is also no way of editing properties.

有人知道在哪里设置那个电子邮件地址吗?

Does anyone know where to set that email address?

推荐答案

好问题!有一个 TFS 作业计划每小时运行一次,以根据 Active Directory 中的详细信息更新有关存储在 TFS 中的安全身份的信息.其中一些信息包括显示名称、安全标识符 (SID)、AD 专有名称和电子邮件地址,以及其他详细信息.您可以通过查看配置数据库中的 tbl_security_identity_cache 表来找到此详细信息缓存.

Great question! There is a TFS job that is scheduled to run every hour to update information about security identities stored in TFS against the details in Active Directory. Some of this information includes the display name, security identifier (SID), AD distinguished name, and e-mail address, among other details. You can find out this cache of details by looking at the tbl_security_identity_cache table in the configuration database.

警告:查询或更改数据库会使您处于可能无法获得 Microsoft 支持的境地.建议您不要这样做,除非 Microsoft 支持代表在有效支持案例的上下文中指示.实际上,您使用 TFS SDK 获取此信息是正确的.

如果您的 TFS 环境不在 Active Directory 环境中,那么它将尝试从运行 TFS 的本地计算机同步信息.它不会包含有关要使用的电子邮件地址的详细信息,因此将留空.

If your TFS environment is not in an Active Directory environment, then it will attempt to synchronize information from the local machine where TFS is running. It won't have details about the e-mail address to use so it will be left blank.

从 TFS 2010 之后的下一版本 TFS 开始,每个用户都可以使用 Team Web Access 更新其个人资料中的通知电子邮件地址.

Starting in the next version of TFS after TFS 2010, each user will be able to update their notification e-mail address in their profile using Team Web Access.

这篇关于我在哪里管理 TFS 用户的电子邮件地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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