Table of Contents

Method CreateOrUpdateServerUserAsync

Namespace
Kepware.Api.ClientHandler
Assembly
Kepware.Api.dll

CreateOrUpdateServerUserAsync(ServerUser, CancellationToken)

Creates a new Server User or updates an existing one.

public Task<bool> CreateOrUpdateServerUserAsync(ServerUser user, CancellationToken cancellationToken = default)

Parameters

user ServerUser

The ServerUser to create or update.

cancellationToken CancellationToken

A token that can be used to request cancellation of the operation.

Returns

Task<bool>

True if the operation succeeds; otherwise, false.

Exceptions

ArgumentException

Thrown if the user has no name specified or the password is invalid.