SPWeb.CreateDefaultAssociatedGroups Method
Creates an owner group.
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.
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.
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.
- 12/30/2010
- deeshubby