2011-08-23 132 views
0

我正在使用/_vti_bin/usergroup.asmx服務並使用GetAllUserCollectionFromWeb()獲取userinfo。但我需要通過特定的網站,並需要獲取該網站的用戶信息。使用哪個共享點服務?如何獲得?使用Sharepoint Web服務從特定SharePoint站點獲取userinfo

Thanx提前

+0

http://sharepoint.stackexchange.com/questions/18191/getting-the-userinfo-from-specific-sharepoint-site-using-sharepoint-web-service –

回答

1

有3種方法可以從網站或網站集讓用戶:

或者,在代碼中,還有3個屬性:AllUsers,SiteUsers和Users。我沒有使用這個特定的web服務,但我想(我希望)web服務方法應該完全相同。正如有人在他blog post解釋說:

SPWeb.AllUsers - 獲取用戶對象的表示 誰是網站的任何成員或誰已經瀏覽到 的網站作爲一個域組的認證成員的所有用戶的集合在現場

SPWeb.SiteUsers - 獲取屬於 網站集

SPWeb.Users所有的用戶集合 - 獲取是明確在網絡上 分配權限的用戶對象的集合網站

要獲得用戶明確。如果要使用Web服務在其他網絡環境,然後使用該網站的網址,並將/_vti_bin/usergroup.asmx

有從URL http://sharepointserver/web/subweb/_vti_bin/usergroup.asmx網址 http://sharepointserver/web/subweb調用Web服務網絡
+0

的副本•GetAllUserCollectionFromWeb() - 如何確定curret網站?我致電該服務的網站或該服務電話的網址? – smhnkmr

+0

@mhm該服務調用的URL(查看我寫的最後一次傳輸) –

相關問題