Skip to main content

UserReset

Invalidates all open sessions for the specified user, forcing them to re-authenticate on their next request.

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

Method Signature

bool UserReset(string SessionID, int UserID)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
UserIDintYesUnique identifier of the user whose sessions will be invalidated

Response

Returns true if all sessions were successfully invalidated; throws a SOAP fault on failure.

<!-- Example response XML -->
<UserResetResult>true</UserResetResult>

:::tip Use Case Call UserReset when a user's credentials may have been compromised, after a password change, or as part of an offboarding workflow to ensure no active sessions remain. :::

Code Examples

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

var client = new ECGridOSPortTypeClient();

// Invalidate all sessions for user 5001
bool success = await client.UserResetAsync(sessionID, UserID: 5001);

if (success)
{
Console.WriteLine("All sessions for user 5001 have been invalidated.");
}

REST Equivalent

See Reset SessionsPOST /v2/users/reset/{id}.