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
Tags
# Sharepoint
Newer Article
Different ways to Delete All items from a SharePoint List Programatically
Older Article
Office Web Apps SharePoint 2010 - IFrame
JSON Light support in REST SharePoint APIApr 21, 2016
Get a one year free Office 365 developer accountMay 28, 2015
Labels:
Sharepoint
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment