←Select platform

CreateUser Method

Summary

Creates or updates a user for the viewer.

Syntax
C#
VB
C++
public ControllerReturnCode CreateUser( 
   string username, 
   string password, 
   string adminUsername, 
   string adminPassword, 
   bool isAdmin, 
   string[] permissions, 
   string[] roles, 
   CreateUserOptions options 
) 
Public Function CreateUser( 
   ByVal username As String, 
   ByVal password As String, 
   ByVal adminUsername As String, 
   ByVal adminPassword As String, 
   ByVal isAdmin As Boolean, 
   ByVal permissions() As String, 
   ByVal roles() As String, 
   ByVal options As CreateUserOptions 
) As ControllerReturnCode 
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 20.0.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.WebViewer.ExternalControl Assembly