Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Getting Groups From the SPWeb Object

  Asked By: Chelsea Gray         Date: Jan 04, 2006      Category: Sharepoint      Views: 1747
 

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.

Tagged:            

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].