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.
Do you know someone who can help? Share a link to this thread on twitter, or facebook.