Using SharePoint object model we can pull out all the cross-site groups either by using SPWeb.Groups or by using SPWeb.SiteGroups. Then what is the difference between the two?
SPWeb.Groups will allow you to pull out only the groups which have some / any kind of permissions defined within the site.
SPWeb.SiteGroups will pull out all the cross-site groups irrespective of any permission defined.
So, the next time you try to pull out the Groups using SPWeb.Groups, you will not get astonished by not finding few of the Groups within the retrieved collection.
|
Note: The same also applies to the cross-site user collection retrieval using either SPWeb.Users or SPWeb.SiteUsers.
|
Tuesday, September 4, 2012
SharePoint Groups vs. SiteGroups
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment