共用方式為


/im 命令

使用 /im 以顯示有關撰寫您所指定群組之直接成員資格的識別的資訊。

必要的使用權限

若要使用 /im 命令,您必須分別將 [檢視集合層級資訊] 或 [檢視執行個體層級資訊] 權限設為 [允許],視您使用的是 /collection 或 /server 參數而定。如需詳細資訊,請參閱 Team Foundation Server 使用權限

TFSSecurity /im Identity [/collection:CollectionURL] [/server:ServerURL]

參數

引數

描述

Identity

使用者或群組的識別。如需識別規範的詳細資訊,請參閱 TFSSecurity 識別和輸出規範

/collection:CollectionURL

如果不使用 /server 則為必要項。依下列格式指定 Team 專案集合的 URL:http://ServerName:Port/VirtualDirectoryName/CollectionName

/server:ServerURL

如果不使用 /collection,則為必要項。依下列格式指定應用程式層伺服器的 URL:http://ServerName:Port/VirtualDirectoryName

備註

在 Team Foundation 的應用程式層伺服器上執行此命令。

TFSSecurity/im 命令只會顯示指定之群組的直接成員。此清單包含屬於指定之群組的其他群組。不過,不會列出成員群組的實際成員。

範例

下列範例會顯示虛擬公司 "A 中 "Team Foundation Administrators" 群組的直接成員資格識別資訊。。

注意事項注意事項

範例僅供解說之用,皆為虛構。沒有影射任何真實存在的人事物,也不應推斷為與其有所關聯。

>tfssecurity /im "Team Foundation Administrators" /server:ServerURL

範例輸出:

Resolving identity "Team Foundation Administrators"...

SID: S-1-9-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-0-0-0-0-1

DN:

Identity type: Team Foundation Server application group
Group type: AdministrativeApplicationGroup
Project scope: Server scope
Display name: Team Foundation Administrators
Description: Members of this application group can perform all privileged operations on the server.

3 member(s):
  [U] Datum1\hholt (Holt, Holly)
  [G] BUILTIN\Administrators (BUILTIN\Administrators)
s [A] [InstanceName]\Team Foundation Service Accounts

Member of 2 group(s):
a [A] [DatumOne]\Project Collection Administrators ([DatumOne]\Project Collection Administrators)
e [A] [InstanceName]\Team Foundation Valid Users

Done.

下列範例會使用 adm:Datum Corporation",藉由使用 **adm:**識別規範達成。

>tfssecurity /im adm: /collection:CollectionURL 

範例輸出:

Resolving identity "adm: "...

SID: S-1-9-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-0-0-0-0-1

DN:

Identity type: Team Foundation Server application group
Group type: AdministrativeApplicationGroup
Project scope: Server scope
Display name: [DatumOne]\Project Collection Administrators
Description: Members of this application group can perform all privileged operations on the team project collection.

5 member(s):
  [U] Datum1\jpeoples (Peoples, John)
  [U] Datum1\hholt (Holt, Holly)
  [G] BUILTIN\Administrators (BUILTIN\Administrators)
a [A] [InstanceName]\Team Foundation Administrators
s [A] [DatumOne]\Project Collection Service Accounts ([DatumOne]\Project Collection Service Accounts)

Member of 1 group(s):
e [A] [DatumOne]\Project Collection Valid Users ([DatumOne]\Project Colleciton Valid Users)

Done.

下列範例會顯示虛擬公司 "A 中,網域 "Datum1" 內 "DatumOne" Team 專案集合中 Project Administrators 群組的識別資訊。Datum Corporation",藉由使用 **adm:**識別規範達成。

>tfssecurity /im adm:vstfs:///Classification/TeamProject/ProjectGUID /collection:CollectionURL 

範例輸出:

Resolving identity "adm:vstfs:///Classification/TeamProject/ProjectGUID"...

SID: S-1-9-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXX

DN:

Identity type: Team Foundation Server application group
Group type: AdministrativeApplicationGroup
Project scope: Datum
Display name: [Datum]\Project Administrators
Description: Members of this application group can perform all operations in the team project.

2 member(s):
  [U] Datum1\jpeoples (Peoples, John)
  [U] Datum1\hholt (Holt, Holly)

Member of 1 group(s):
e [A] [DatumOne]\Project Collection Valid Users ([DatumOne]\Project Collection Valid Users)

Done.

請參閱

其他資源

使用 TFSSecurity 變更群組和權限

How to: Create a Global Group

Team Project Groups