UserAdd()


Create a User for the Session Network and a specified Mailbox.

Public Function UserAdd(ByVal SessionID As String, _
                        
ByVal MailboxID As Integer, _
                        ByVal LoginName As String, _
                       
ByVal Password As String, _
                       
ByVal RecoveryQuestion As String, _
                       
ByVal RecoveryAnswer As String, _
                       
ByVal FirstName As String, _
                       
ByVal LastName As String, _
                       
ByVal Company As String, _
                       
ByVal Email As String, _
                       
ByVal Phone As String, _
                       
ByVal CellPhone As String, _
                       
ByVal CellCarrier As CellCarrier, _
                       
ByVal AuthLevel As AuthLevel) _
                        As Integer

Parameters

SessionID
String - GUID
The current session's GUID in string format. This is a 32-character hexidecimal string in the format:
00000000-0000-0000-0000-000000000000. This is the value returned by the Login() function.
MailboxID
Integer
The ECGrid MailboxID assigned to the ID on the specified network. 
LoginName
String(8,16)
A user's login name.
Password
String(8,32)
A "strong" password with a minimum length of 8 and maximum length of 32. 
RecoveryQuestion
String(0,50)
A user defined question used to restore lost password or to activate an account with too many failed logins.
RecoveryAnswer
String(0,50)
A user defined answer to the RecoveryQuestion, used to restore lost password or to activate an account with too many failed logins.
FirstName
String(1,50)
A user's first name.
LastName
String(1,50)
A user's last name.
Company
String(0,50)
A company name.
Email
String(1,50)
A valid Email address.
Phone
String(0,20)
A phone number.
CellPhone
String(0,20)
A Cell Phone number.
CellCarrier
Short - CellCarrier ENUM
A value to indicate the cell phone carrier in order to send SMS text messages.
AuthLevel
Short - AuthLevel ENUM
The Authority Level for system access.

Returns

UserID
Integer
A numeric value used to represent a specific user on the system.

Remarks

This will add a new user to the Session Network/Mailbox. The maximum Authorization Level is that of the current Session UserID.

To add users to other Network/Mailboxes use UserAddEx().

Example

Visual Basic
[insert code sample]

EventID: 1005

See Also

UserAddEx()
Authorization Level
Session Network/Mailbox


© 2008-2011, Loren Data Corp.
All rights reserved.
ECGrid is a registered service mark of Loren Data Corp.
ECGridOS is a service mark of Loren Data Corp.