2012-08-01 66 views
0

如何獲取自定義組的ID?它似乎不在組編輯菜單中。Sharepoint 2010獲取組ID

我需要知道爲了限制我的模式中的人員選擇器到某個組。

<Field ID="{7B0BC328-5F1F-4BD1-8D8B-4F01F815734F}" Name="Assigned To" DisplayName="Assigned To" Type="User" Group="" UserSelectionMode="PeopleOnly"/> 

謝謝!

回答

2

使用PowerShell,你應該能夠從SharePoint 2010 Management Shell中的服務器上做這樣的事情:

$siteCollection = Get-SPSite "http://<my_site_collection>" 
$siteCollection.RootWeb.Groups | Format-Table -Property Name, ID