在SharePoint 2010中,有时候会不小心将默认的3个组(AssociatedOwnerGroup / AssociatedMemberGroup / AssociatedVisitorGroup)给删除掉,如果想重新设置,可以有以下方法设置

1. Coding 

 using (SPSite spSite = new SPSite("SiteCollectionUrl"))
            {
                using (SPWeb spWeb = spSite.OpenWeb())
                {
                    spWeb.AssociatedVisitorGroup = spWeb.Groups["VisitorsGroupName"];
                    spWeb.AssociatedMemberGroup = spWeb.Groups["ContributorGroupName"];
                    spWeb.AssociatedOwnerGroup = spWeb.Groups["OwnerGroupName"];
                    spWeb.Update();
                }
            }

 

2. 页面

在2010中,隐藏了设置页面,不过可以直接通过URL访问。

[YourSiteURL]/_layouts/permsetup.aspx

相关文章:

  • 2021-08-13
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-01-14
  • 2021-10-27
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2021-07-07
  • 2021-07-24
  • 2021-09-12
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案