Skip to main content

UserUpdate

Updates the contact details (name and email) of an existing user account.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

UserIDInfo UserUpdate(string SessionID, int UserID, string FirstName, string LastName, string Email)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
UserIDintYesUnique identifier of the user to update
FirstNamestringYesUpdated first name
LastNamestringYesUpdated last name
EmailstringYesUpdated email address

Response Object — UserIDInfo

Returns the updated UserIDInfo object reflecting the changes.

FieldTypeDescription
UserIDintUnique identifier of the user
LoginstringLogin name (unchanged)
EmailstringUpdated email address
FirstNamestringUpdated first name
LastNamestringUpdated last name
NetworkIDintNetwork the user belongs to
MailboxIDintMailbox the user belongs to
AuthLevelAuthLevelAuthorization level (unchanged)
StatusStatusAccount status (unchanged)
CreateddateTimeAccount creation timestamp (unchanged)
<!-- Example response XML -->
<UserIDInfo>
<UserID>5001</UserID>
<Login>jsmith</Login>
<Email>john.smith@newdomain.com</Email>
<FirstName>John</FirstName>
<LastName>Smith</LastName>
<NetworkID>10</NetworkID>
<MailboxID>100</MailboxID>
<AuthLevel>MailboxAdmin</AuthLevel>
<Status>Active</Status>
<Created>2024-01-15T09:30:00</Created>
</UserIDInfo>

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
using ECGridOSClient;

var client = new ECGridOSPortTypeClient();

// Update user 5001's name and email address
UserIDInfo updated = await client.UserUpdateAsync(
sessionID,
UserID: 5001,
FirstName: "John",
LastName: "Smith",
Email: "john.smith@newdomain.com");

Console.WriteLine($"UserID: {updated.UserID}");
Console.WriteLine($"Email: {updated.Email}");

REST Equivalent

See Update UserPUT /v2/users.