Returns or sets the user's rights (privileges).
Object.Rights [ = enRights ]
The Rights property syntax has the following parts:
Name |
Type |
Description |
Object |
AUser |
AUser object |
enRights |
enumAUserRights |
An integer specifying the user rights (privileges). |
enumAUserRights can be one of the following:
Name |
Value |
Description |
auserRightExecute |
0x00000001 |
Execute |
auserRightDebugTests |
0x00000002 |
Debug Tests |
auserRightDebugCode |
0x00000004 |
Debug Code |
auserRightViewPrograms |
0x00000008 |
View Programs |
auserRightViewSystems |
0x00000010 |
View Systems |
auserRightViewDrivers |
0x00000020 |
View Drivers |
auserRightModifyPrograms |
0x00000040 |
Modify Programs |
auserRightModifySystems |
0x00000080 |
Modify Systems |
auserRightModifyDrivers |
0x00000100 |
Modify Drivers |
auserRightModifyProjects |
0x00000200 |
Modify Projects |
auserRightAdministrator |
0x80000000 |
Administrator |
auserRightAll |
0xFFFFFFFF |
All |
auserRightTesters |
0x00000003 |
Testers Group |
auserRightViewers |
0x0000003F |
Viewers Group |
auserRightAuthors |
0x000003FF |
Authors Group |
auserRightProgramAuthors |
0x0000027F |
Program Authors Group |
auserRightSystemAuthors |
0x000002FF |
System Authors Group |
auserRightDriverAuthors |
0x000003FF |
Driver Authors Group |
More than one right may be combined with the use of an OR operation.
A user with the Administrator right can add, modify, or delete users or another administrator, but cannot modify programs, debug code, etc. unless those rights are also assigned to it with an OR operation.
The enumAUserRights table shows user's rights in ascending order. Each program, system, or driver author will have the all the rights below it, as well as the modify project rights.
The group rights are used to combine user rights into common groups. Thus auserRightTesters is the same as (auserRightExecute OR auserRightDebugTests).
The following statement will give the user "John Smith" all the rights up to and including auserRightModifyPrograms, plus auserRightModifyProjects:
users.user("John Smith").Rights=auserRightModifyPrograms