Chapter 4: Using the Command Line Interface
156
Results:
•
A new user profile "May" is created.
•
The new user profile is enabled.
•
The admin role is assigned to the new user profile.
Example 2 - Modifying a User's Roles
The following command assigns two roles to the user "May."
config:#
user modify May roles admin,tester
Results:
•
The user May has the union of all privileges of "admin" and "tester."
Example 3 - Default Measurement Units
The following command sets all default measurement units at a time.
config:#
user defaultpreferences preferredTemperatureUnit F preferredLengthUnit feet
preferredPressureUnit psi
Results:
•
The default temperature unit is set to Fahrenheit.
•
The default length unit is set to feet.
•
The default pressure unit is set to psi.
Role Configuration Commands
A role configuration command begins with
role
.
Creating a Role
This command creates a new role, with a list of semicolon-separated privileges assigned to the role.
config:#
role create <name> <privilege1>;<privilege2>;<privilege3>...
If a specific privilege contains any arguments, that privilege should be followed by a colon and the argument(s).
config:#
role create <name> <privilege1>:<argument1>,<argument2>...;
<privilege2>:<argument1>,<argument2>...;
<privilege3>:<argument1>,<argument2>...;
...