UserUpdate()


Update a User account.

Public Function UserUpdate(ByVal SessionID As String, _
                           
ByVal UserID As Integer, _
                           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 Boolean

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.
UserID
Integer
A numeric value used to represent a specific user on the system.
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

Boolean 
True if successful, false on failure.

Remarks

To keep current values, use the string "[Default]" for the string values. The ENUMs have NoUpdate values for the same purpose.

The AuthLevel cannot be set higher than the current session Authorization Level.

Example

Visual Basic
[insert code sample]

EventID: 1008

See Also

Users & Authorization Level


© 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.