0 out of 1 rated this helpful - Rate this topic

SPWeb.CreateDefaultAssociatedGroups Method

Creates an owner group.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public void CreateDefaultAssociatedGroups(
	string userLogin,
	string userLogin2,
	string groupNameSeed
)

Parameters

userLogin
Type: System.String
The user logon name of the group owner.
userLogin2
Type: System.String
The secondary contact for the group
groupNameSeed
Type: System.String
The name of the group created.

If the website has a null AssociatedVisitorGroup property and a null AssociatedOwnerGroup property before you call this method then it will create a visitor group and an owner group with the groupNameSeed name.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
FYI - CreateDefaultAssociatedGroup method is not available in the Client Object model
FWIW - Here's a quick reference to the Client Object Model (Microsoft.SharePoint.Client) version of SPWeb's methods:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.web_methods.aspx

I'm sure this is by design, but, figured I'd note it here anyways.