When a person is added to the database, the Business
Administrator can include a Password clause as part of the person's definition.
This clause assigns a password to the person. Once assigned, the password is
required to access this person's context (unless the password is removed).
The password should be kept secret from all unauthorized users. If the
defined person never shares its password with any other user, the effect is the
same as using the Disable Password clause in the person's definition. For more
information, see
Add Person Command Syntax.
Use the following Set Context command if a person is defined as having a
password:
set context person PERSON_NAME password VALUE [vault VAULT_NAME];
|
PERSON_NAME
is the name of a user defined in the
database.
VALUE
is the password value assigned to the named
person in the person definition that was created by the Business Administrator.
VAULT_NAME
is a valid vault defined in the
database.
In this command, you must enter both a person name and the password
associated with the person. If either value is incorrect, an error message is
displayed. However, if you are the Business Administrator, you can bypass a
defined password. If you are assigned a user type of Business Administrator,
you can change your context to that of another person by entering the following
command:
set context person PERSON_NAME [vault VAULT_NAME];
|
For example, assume a person is defined as follows:
add person mcgovern
fullname "Jenna C. McGovern"
password PostModern
assign role Engineer
assign group "Building Construction"
vault "High Rise Apartments";
|
If you are defined as a Full User and want to set your context to
mcgovern, you would enter:
set context user mcgovern password PostModern;
|
If you are defined as a Business Administrator, you can set your
context to mcgovern by entering:
set context person mcgovern;
|
For more information on the different user types, see
Type Clause for the Add Person Command.
Changing Your Password
You can change your password as you set context using the keyword
newpassword
within the Set Context clause. Use this
keyword with the
user
or
person
keywords and the
password
keyword. Enter the new password after the
keyword
newpassword
. If the change is successful, context is
also set to this user. For example, the following MQL command sets context to
the user mcgovern and changes the user's password from "Jurassic' to
"PostModern".
set context user mcgovern password Jurassic newpassword PostModern;
|
No Password Clause
When a person is defined with a No Password Clause, anyone can set
context to that person name. Since no password is required, the Set Context
command is:
set context person PERSON_NAME [vault VAULT_NAME];
|
For example, assume you want to access the business objects created
by a person name MacLeod. To do this, you enter:
set context person macleod;
|
After this command is executed, you have the same privileges and
business objects as MacLeod.