Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Getting Groups From the SPWeb Object

  Asked By: Chelsea    Date: Jan 04    Category: Sharepoint    Views: 6478

Does anyone know how to programmatically create groups (not Cross-site groups, but groups) in a SharePoint site. I would assume that it was something like web.CollectionName.add(“GroupName”), but I can’t seem to figure out what the name of the collection is.

I have my SPWeb object, which has properties for Groups and SiteGroups. The MSDN documentation describes both of those as being the collection of Cross-Site groups in the web. That by itself is confusing enough. Why have two properties that return the same thing?

Then, to top it off, there is a Roles property, which looks like it would be the one I need. But, the documentation says is obsolete.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Getting Groups From the SPWeb Object Or get search suggestion and latest updates.