Remarks | Properties | Methods | DynProperties | Samples |
ED
|
avaliable
|
RT
|
avaliable
|
This object represents an user from the central user
administration of the current project. The most important settings
of the single users are available with this object.
All available settings can be edited with VBA.
The critical properties Identification and Password can only be
edited with a method, whereas the properties Name and Level can be
edited directly in the property.
Active | Admin | Identification |
Level | Level1 | Level2 |
Level3 | Locked | Name |
Parent |
DynPropertiesEnum[GET] | DynProperties[GET] | DynProperties[PUT] |
Export | IdentificationChange | Import |
PasswordChange |
Name | Type | Description |
---|---|---|
Admin | Boolean |
Administrator Active: This
user is an administrator. This means he can edit other users in the
Runtime and unlock the system.
|
LockCode | String |
Lock code Four-digit PIN code. This code is used by the user to lock and unlock different areas. Using this code for locking avoids unintentionally unlocking a lock and therefore unnecessary accidents.
|
UserActive | Boolean |
User active Active: The
user is accepted in the Runtime. Read more in the online manual
|
UserLevel0 | Long | With the UserLevel properties you have
the opportunity to get/set selected authorization groups via a long
value. The value for the selected authorization groups is splitted over four properties. For example: Selected authorization levels 0,1,2 have an UserLevel0 value of 7 (1+2+4). |
UserLevel1 | Long | With the UserLevel properties you have
the opportunity to get/set selected authorization groups via a long
value. The value for the selected authorization groups is splitted over four properties. For example: Selected authorization levels 0,1,2 have an UserLevel0 value of 7 (1+2+4). |
UserLevel2 | Long | With the UserLevel properties you have
the opportunity to get/set selected authorization groups via a long
value. The value for the selected authorization groups is splitted over four properties. For example: Selected authorization levels 0,1,2 have an UserLevel0 value of 7 (1+2+4). |
UserLevel3 | Long | With the UserLevel properties you have
the opportunity to get/set selected authorization groups via a long
value. The value for the selected authorization groups is splitted over four properties. For example: Selected authorization levels 0,1,2 have an UserLevel0 value of 7 (1+2+4). |
UserLocked | Boolean |
Locked Active: The
user is locked. Read more in the online manual
|
UserName | String |
Complete name Name of the user. Read more in the online manual
|
Sub ChangeUser() Dim zUser As User Dim vResult As Variant Set zUser = thisProject.Passwords.ItemUser(0) Debug.Print zUser.Name & " will be changed" 'change the identification of the user vResult = zUser.IdentificationChange("NewLogonName") 'change the password for the user vResult = zUser.PasswordChange("P@ssword", "NewPassword") End Sub