SOAP API - UpdateUserNameAndAccount

UpdateUserNameAndAccount( existingUserName, newAccountName, newUserName ) : String

Since: EngageIP v26.4

Updates the User Name and Account for the user with the given existing user name.

Throws exception in the following conditions:

  • The existUserName does not exist in the system

  • The newUserName is already in use

Parameters:

  • existingUserName (String) - The current name of the user that you wish to change

  • newAccountName (String) - The new account name. NOTE: this need not be unique

  • newUserName (String) - The proposed new name for the user, this must be unique

Returns:

A String indicating success or the reason for failure.

Possible Exceptions:

  • INVALID USERNAME


SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /AdminPortal/Webservice.asmx HTTP/1.1 Host: patrick-85260 Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <AuthHeader xmlns="Logisense_EngageIP"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap12:Header> <soap12:Body> <UpdateUserNameAndAccount xmlns="Logisense_EngageIP"> <existingUserName>string</existingUserName> <newAccountName>string</newAccountName> <newUserName>string</newUserName> </UpdateUserNameAndAccount> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <UpdateUserNameAndAccountResponse xmlns="Logisense_EngageIP"> <UpdateUserNameAndAccountResult>string</UpdateUserNameAndAccountResult> </UpdateUserNameAndAccountResponse> </soap12:Body> </soap12:Envelope>



SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /AdminPortal/Webservice.asmx HTTP/1.1 Host: patrick-85260 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "Logisense_EngageIP/UpdateUserNameAndAccount" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthHeader xmlns="Logisense_EngageIP"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap:Header> <soap:Body> <UpdateUserNameAndAccount xmlns="Logisense_EngageIP"> <existingUserName>string</existingUserName> <newAccountName>string</newAccountName> <newUserName>string</newUserName> </UpdateUserNameAndAccount> </soap:Body> </soap:Envelope>