UserGroup.UpdateUserInfo Method

Updates information for the specified user.

Namespace:  [UserGroup Web service]
Web service reference: http://Site/_vti_bin/UserGroup.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/UpdateUserInfo", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub UpdateUserInfo ( _
    userLoginName As String, _
    userName As String, _
    userEmail As String, _
    userNotes As String _
)
'Usage
Dim instance As UserGroup
Dim userLoginName As String
Dim userName As String
Dim userEmail As String
Dim userNotes As String

instance.UpdateUserInfo(userLoginName, _
    userName, userEmail, userNotes)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/UpdateUserInfo", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateUserInfo(
    string userLoginName,
    string userName,
    string userEmail,
    string userNotes
)

Parameters

  • userLoginName
    Type: System.String

    A string that specifies the user name (DOMAIN\User_Alias) of the user whose information is updated.

  • userName
    Type: System.String

    A string that contains the display name 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.

Examples

The following code example changes the display name, e-mail address, and notes for the specified user.

Dim usrgrpService As New Web_Reference_Folder_Name.UserGroup()
usrgrpService.Credentials = System.Net.CredentialCache.DefaultCredentials

Dim userName As String = "DOMAIN\User_Alias"
Dim newDisplayName As String = "NewDisplayName"
Dim newUserEmail As String = "New_E-mail"
Dim newNotes As String = "New_Notes"

usrgrpService.UpdateUserInfo(userName, newDisplayName, newUserEmail, newNotes)
Web_Reference_Folder_Name.UserGroup usrgrpService = new Web_Reference_Folder_Name.UserGroup();
usrgrpService.Credentials= System.Net.CredentialCache.DefaultCredentials;

string userName = "DOMAIN\\User_Alias";
string newDisplayName = "New_Display_Name";
string newUserEmail = "New_E-mail";
string newNotes = "New_Notes";

usrgrpService.UpdateUserInfo(userName, newDisplayName, newUserEmail, newNotes);

See Also

Reference

UserGroup Class

UserGroup Members

UserGroup Web Service