You can use the udb.u commands to manage individual user accounts.
Table 13–10 Summary of udb.u Commands
Command Name |
Description |
---|---|
udb.u.add |
Adds a new user account |
udb.u.cp |
Changes the password of the specified user |
udb.u.la |
Lists all user accounts |
udb.u.lo |
Retrieves information about the specified user. |
udb.u.lp |
Lists the permissions granted to the specified user |
udb.u.mod |
Modifies the specified user account |
This command adds a new user.
Table 13–11 Arguments and Result for the udb.u.add Command
Argument |
Syntax |
Description |
|
---|---|---|---|
nu |
[R] |
String |
The user name of the new user |
np |
[O/R] |
String |
The plaintext password for the new user; required if an encoded password is not available or supplied. |
nep |
[O/R] |
String |
The encoded password for the new user; required if a plaintext password is not available or supplied. |
ng |
[O] |
GroupArray |
The user groups for the new user |
hide |
[O] |
Boolean |
Whether the user is set to hidden, default false |
loginConfig |
[O/R] |
String |
Login configuration to use for this user; default is ``internal,'' if available, otherwise required |
result |
User |
The new user |
This command changes the password of the specified user.
Table 13–12 Arguments for the udb.u.cp Command
Argument |
Syntax |
Description |
|
---|---|---|---|
un |
[R] |
String |
The user name of the user whose password should be changed. |
op |
[O/R] |
String |
The old plaintext password. |
oep |
[O/R] |
String |
The old encoded password. |
np |
[O/R] |
String |
The new plaintext password. |
nep |
[O/R] |
String |
The new encoded password. |
This command lists all user accounts.
Table 13–13 Argument and Result for the udb.u.la Command
Argument/Result |
Syntax |
Description |
|
---|---|---|---|
sh |
[O] |
Boolean |
Whether hidden users are shown, default false |
result |
UserArray |
The users |
The udb.u.lo command retrieves the specified user.
Table 13–14 Argument and Result for the udb.u.lo Command
Argument/Result |
Syntax |
Description |
|
---|---|---|---|
ID |
[R] |
UserID |
The user ID |
result |
User |
The user |
This command lists the permissions granted to a user.
Table 13–15 Argument/Result for the udb.u.lp Command
Argument/Result |
Syntax |
Description |
|
---|---|---|---|
ID |
[R] |
UserID |
The user ID |
result |
PermissionArray |
The permissions |
This command modifies an existing user; omitted arguments preserve current values
Table 13–16 Argument/Result for the udb.u.mod Command
Argument/Result |
Syntax |
Description |
|
---|---|---|---|
ID |
[R] |
UserID |
The user ID |
np |
[O] |
String |
The new plaintext password for the user, cannot be used in conjunction with the an encoded password |
nep |
[O] |
String |
The new encoded password for the user, cannot be used in conjunction with the a plaintext password |
ng |
[O] |
GroupArray |
The new user groups for the user |
hide |
[O] |
Boolean |
Whether the user is set to hidden |
active |
[O] |
Boolean |
Whether the user is set to active |
forceFlush |
[O] |
Boolean |
True means flush the user's session variables, if needed, false means abort the modification. Defaults to false. |
loginConfig |
[O] |
String |
The new login configuration for the user |
result |
User |
The modified user |