←Select platform

CreateUser Method

Summary

Creates or updates a user for the viewer.

Syntax
C#
C++/CLI
public ControllerReturnCode CreateUser( 
   string username, 
   string password, 
   string adminUsername, 
   string adminPassword, 
   bool isAdmin, 
   string[] permissions, 
   string[] roles, 
   CreateUserOptions options 
) 
public:  
   ControllerReturnCode^ CreateUser( 
       String^ username, 
      String^ password, 
      String^ adminUsername, 
      String^ adminPassword, 
      bool isAdmin, 
      array<String^>^ permissions, 
      array<String^>^ roles, 
      CreateUserOptions^ options 
   ) 

Parameters

username

The username being created or updated.

password

The password for the user being created or updated.

adminUsername

adminUsername.

adminPassword

adminPassword.

isAdmin

true if the user is admin; otherwise, false.

permissions

The user's permissions.

roles

The user's roles.

options

A CreateUserOptions object that specifies the options for this method.

Return Value

A ControllerReturnCode value indicating the results of the call.

Requirements

Target Platforms

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.WebViewer.ExternalControl Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.