UserGroup.AddUserToGroup Method
SharePoint 2010
Adds the user to the specified group.
Web service reference: http://Site/_vti_bin/UserGroup.asmx
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/directory/AddUserToGroup", RequestNamespace = "http://schemas.microsoft.com/sharepoint/soap/directory/", ResponseNamespace = "http://schemas.microsoft.com/sharepoint/soap/directory/", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)] public void AddUserToGroup( string groupName, string userName, string userLoginName, string userEmail, string userNotes )
Parameters
- groupName
- Type: System.String
A string that contains the name of the group.
- userName
- Type: System.String
A string that contains the display name of the user.
- userLoginName
- Type: System.String
A string that contains the user name (DOMAIN\User_Alias) of the user.
- userEmail
- Type: System.String
A string that contains the e-mail address of the user.
- userNotes
- Type: System.String
A string that contains notes for the user.