|
ED
|
avaliable
|
RT
|
avaliable
|
This method creates new users during online operation. If the
identification is an empty string or an user with the same
identification already exists, this method returns Nothing.
Hint: Therefore the returned object always should be checked
on Nothing.
If the identification is valid, a new object User is created and
the defined parameters are transferred to the object. Then the
object is handed over to the central user administration and the
changes are saved.
'create a new user Sub CreateUser() Dim zUser As User '12345 = Levels: 0,3,4,5,12,13 ' 4711 = Levels: 32,33,34,37,38,41,44 ' 555 = Levels: 64,65,67,69,73 ' 1234 = Levels: 97,100,102,103,106 Set zUser = thisProject.Passwords.CreateUserEx("LogonName", "Full Username", "P@ssword", 12345, 4711, 555, 1234) With zUser .Active = True .Admin = True .Locked = False End With End Sub