UserGroup.UpdateGroupInfo Method
Updates information for the specified group.
Namespace: [UserGroup Web service]
Web service reference: http://Site/_vti_bin/UserGroup.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/UpdateGroupInfo", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub UpdateGroupInfo ( _
oldGroupName As String, _
groupName As String, _
ownerIdentifier As String, _
ownerType As String, _
description As String _
)
'Usage
Dim instance As UserGroup
Dim oldGroupName As String
Dim groupName As String
Dim ownerIdentifier As String
Dim ownerType As String
Dim description As String
instance.UpdateGroupInfo(oldGroupName, _
groupName, ownerIdentifier, ownerType, _
description)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/UpdateGroupInfo", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateGroupInfo(
string oldGroupName,
string groupName,
string ownerIdentifier,
string ownerType,
string description
)
Parameters
oldGroupName
Type: System.StringA string that contains the old name of the group.
groupName
Type: System.StringA string that contains the new name of the group.
ownerIdentifier
Type: System.StringA string that contains the user name (DOMAIN\User_Alias) for the owner of the group.
ownerType
Type: System.StringA string that specifies the type of owner, which can be either user or group.
description
Type: System.StringA string that contains the description for the group.
Examples
The following code example changes the name, owner, and description for the specified group.
Dim usrgrpService As New Web_Reference_Folder_Name.UserGroup()
usrgrpService.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim oldName As String = "Old_Group_Name"
Dim newName As String = "New_Group_Name"
Dim newOwner As String = "DOMAIN\User_Alias"
Dim newDescription As String = "Description"
usrgrpService.UpdateGroupInfo(oldName, newName, newOwner, "user", newDescription)
Web_Reference_Folder_Name.UserGroup usrgrpService = new Web_Reference_Folder_Name.UserGroup();
usrgrpService.Credentials= System.Net.CredentialCache.DefaultCredentials;
string oldName = "Old_Group_Name";
string newName = "New_Group_Name";
string newOwner = "DOMAIN\\User_Alias";
string newDescription = "Description";
usrgrpService.UpdateGroupInfo(oldName, newName, newOwner, "user", newDescription);