【问题标题】:Is there are SharePoint 2010 Enterprise Web Service that will allow me to access the site collection administrators for a site collection?是否有允许我访问网站集的网站集管理员的 SharePoint 2010 企业 Web 服务?
【发布时间】:2011-08-20 09:55:06
【问题描述】:

我将使用哪个 Web 服务以及哪个属性或方法来访问网站的网站集管理员?另外,是否可以通过网络服务枚举所有网站集并从每个网站集获取管理员?

我没有合适的开发环境,所以我需要通过 Web 服务来完成。谢谢。

【问题讨论】:

    标签: sharepoint sharepoint-2010 sharepoint-api


    【解决方案1】:

    我不确定这个功能本身是否存在。不过,您应该能够创建自己的托管在 SharePoint 中的服务,并创建您正在寻找的功能。

    • 这是关于如何在 SharePoint 2010 中托管 WCF 服务的link
    • 枚举网站集应该相对简单。
    • SPWeb.SiteAdministrators 集合将返回所有网站集管理员的列表。

    【讨论】:

      【解决方案2】:

      正如马特所说,没有任何内置功能可以做到这一点。仅使用内置功能可以做的最类似的事情是浏览根网络的用户组和用户:

      ClientContext ctx = new ClientContext("http://foo");
      GroupCollection grps = ctx.Web.SiteGroups;
      ctx.Load(grps);
      ctx.ExecuteQuery();
      
      foreach (Group grp in grps)
      {
         // do something with each group
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2011-03-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-02-03
        相关资源
        最近更新 更多