Click or drag to resize

RuntimeServiceDeleteUser Method

Deletes a user. Intended for web use only.

Namespace:  Advantys.Workflow.Web.Services.Processes.Runtime
Assembly:  Advantys.Workflow.Web.Services.Processes.Runtime (in Advantys.Workflow.Web.Services.Processes.Runtime.dll) Version: 8.3.3.0 (8.3.3.20240926)
Syntax
public void DeleteUser(
	string username
)

Parameters

username
Type: SystemString
The username of the user to delete.
Remarks
Available since WorkflowGen version: 6.2.0

A user can't be deleted if any of the following conditions are met:

  • He created or updated a process
  • He has created or participated to one or more requests, including being in the participant of a team action
  • He is the last user association of a participant, independently of the participant role, including as a Coordinator, as a Group or as a Directory association.
  • He shared one or more views
DeleteUser does not support any optional parameters.

Sample code:
RuntimeServiceWebService.RuntimeService myRuntimeService = new RuntimeServiceWebService.RuntimeService();

myRuntimeService.DeleteUser(username);

See Also