Command reference / sec

CHGUSRPRF

Change User Profile

Changes the values specified in a user profile. Parameters that are not specified keep their current values (*SAME). The SYSTOOLS.CHANGE_USER_PROFILE table function can modify some user profile values.

Allowed environments: *ALL. Positional parameters: 3.

Restrictions

Parameters

USRPRF User profile

Specifies the user profile whose values are to be changed. A numeric user profile name must be prefixed with Q. This is a required parameter.

Type
*SNAME
Required
Yes
Length
10
Case
Uppercase

PASSWORD User password

Specifies the password that allows the user to sign on to the system. Passwords are case sensitive at password levels 2, 3, and 4.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
The value does not change.
*USRPRF
The password is the same as the user name specified on USRPRF.

PWDEXP Set password to expired

Specifies whether the password is set to expired. If it is, the user must change the password to sign on.

Type
*CHAR
Required
No
Default
*SAME
Length
5
Case
Uppercase

Allowed values: *SAME, *NO, *YES

*SAME
The value does not change.
*NO
The password is not set to expired.
*YES
The password is set to expired.

STATUS Status

Specifies the status of the user profile. The system disables a profile when the sign-on attempt limit is reached, when its expiration date is reached, or when STATUS(*DISABLED) is set.

Type
*CHAR
Required
No
Default
*SAME
Length
9
Case
Uppercase

Allowed values: *SAME, *ENABLED, *DISABLED

*SAME
The value does not change.
*ENABLED
The user profile is valid for sign-on.
*DISABLED
The user profile is not valid for sign-on until an authorized user enables it again. Batch jobs can still be submitted under it.

USRCLS User class

Specifies the type of user: security officer, security administrator, programmer, system operator, or user. The user class controls the options shown on a menu and, with SPCAUT(*USRCLS), the special authorities granted.

Type
*CHAR
Required
No
Default
*SAME
Length
7
Case
Uppercase

Allowed values: *SAME, *USER, *SYSOPR, *PGMR, *SECADM, *SECOFR

*SAME
The value does not change.
*USER
At QSECURITY 10 or 20, the user has *ALLOBJ and *SAVSYS authority. At QSECURITY 30 or above, the user has no special authorities.
*SECOFR
At all security levels, the security officer is granted *ALLOBJ, *SAVSYS, *JOBCTL, *SERVICE, *SPLCTL, *SECADM, *AUDIT, and *IOSYSCFG.
*SECADM
At QSECURITY 10 or 20, the security administrator has *ALLOBJ, *SAVSYS, *SECADM, and *JOBCTL. At QSECURITY 30 or above, has *SECADM.
*PGMR
At QSECURITY 10 or 20, the programmer has *ALLOBJ, *SAVSYS, and *JOBCTL. At QSECURITY 30 or above, has no special authorities.
*SYSOPR
At QSECURITY 10 or 20, the system operator has *ALLOBJ, *SAVSYS, and *JOBCTL. At QSECURITY 30 or above, has *SAVSYS and *JOBCTL.

ASTLVL Assistance level

Specifies which user interface to use.

Type
*CHAR
Required
No
Default
*SAME
Length
9
Case
Uppercase

Allowed values: *SAME, *SYSVAL, *BASIC, *INTERMED, *ADVANCED

*SAME
The value does not change.
*SYSVAL
The assistance level defined in system value QASTLVL is used.
*BASIC
The Operational Assistant user interface is used.
*INTERMED
The system interface is used.
*ADVANCED
The expert system interface is used. Option keys and function keys are not displayed. Commands without an advanced level use *INTERMED.

CURLIB Current library

Specifies the name of the library used as the current library for this user. If *PARTIAL or *YES is set in LMTCPB, the user cannot change the current library at sign-on or with CHGPRF.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *SAME, *CRTDFT

*SAME
The value does not change.
*CRTDFT
The user has no current library, and QGPL is used as the default current library.

INLPGM Initial program to call

Specifies, for an interactive job, the program called whenever a new routing step starts that has QCMD as the request processing program. No parameters can be passed to the program.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
The value does not change.
*NONE
No program is called when the user signs on. If INLMNU is specified, that menu is displayed.
*LIBL
All libraries in the library list are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the program. If none, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Initial program to call Initial program to call

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

INLMNU Initial menu

Specifies the initial menu displayed when the user signs on, if the routing program is QCMD.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *SIGNOFF

*SAME
The value does not change.
*SIGNOFF
The system signs off the user when the program completes. Intended for users authorized only to run the program.
*LIBL
All libraries in the library list are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the menu. If none, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Initial menu Initial menu

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

LMTCPB Limit capabilities

Specifies how far the user can control the program, menu, current library, and ATTN key handling program values, and whether the user can run commands from a command line. Ignored at security level 10.

Type
*CHAR
Required
No
Default
*SAME
Length
8
Case
Uppercase

Allowed values: *SAME, *NO, *PARTIAL, *YES

*SAME
The value does not change.
*NO
The program, menu, and current library can be changed at sign-on, and commands can be run from a command line.
*PARTIAL
The program and current library cannot be changed at sign-on. The menu can be changed, and commands can be run from a command line.
*YES
The program, menu, and current library cannot be changed at sign-on. Commands cannot be run from a command line, but can be run from a command entry screen.

TEXT Text 'description'

Specifies the text that briefly describes the object.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *BLANK

*SAME
The value does not change.
*BLANK
No text is specified.

SPCAUT Special authority

Specifies the special authorities given to a user, which are required to perform certain system functions. Special authorities cannot be removed from many system-supplied profiles, including QSECOFR and QSYS.

Type
*CHAR
Required
No
Default
*SAME
Length
9
List limit
8
Case
Uppercase

Allowed values: *SAME, *USRCLS, *NONE, *ALLOBJ, *AUDIT, *IOSYSCFG, *JOBCTL, *SAVSYS, *SECADM, *SERVICE, *SPLCTL

*SAME
The value does not change.
*USRCLS
Special authorities are granted based on the USRCLS value, and differ depending on QSECURITY.
*NONE
No special authorities are granted to this user.
*ALLOBJ
All object authority is given to the user.
*AUDIT
Audit authority is given, for auditing functions such as turning auditing on or off.
*JOBCTL
Job control authority is given to change, display, hold, release, cancel, and clear jobs, and to start writers and stop active subsystems.
*SAVSYS
Save system authority is given to save, restore, and free storage for all objects.
*IOSYSCFG
Input/output system configuration authority is given to change system I/O configurations.
*SECADM
Security administrator authority is given to create, change, or delete user profiles. It does not allow giving special authorities the user does not have.
*SERVICE
Service authority is given to perform service functions.
*SPLCTL
Spool control authority is given to perform all spool functions.

SPCENV Special environment

Specifies the special environment in which the user operates after signing on.

Type
*CHAR
Required
No
Default
*SAME
Length
7
Case
Uppercase

Allowed values: *SAME, *SYSVAL, *NONE, *S36

*SAME
The value does not change.
*SYSVAL
The system value QSPCENV determines the environment.
*NONE
The user operates in the IBM i system environment.
*S36
The user operates in the System/36 environment.

DSPSGNINF Display sign-on information

Specifies whether the sign-on information display is shown.

Type
*CHAR
Required
No
Default
*SAME
Length
7
Case
Uppercase

Allowed values: *SAME, *NO, *YES, *SYSVAL

*SAME
The value does not change.
*SYSVAL
System value QDSPSGNINF determines whether the display is shown.
*NO
The sign-on information display is not shown.
*YES
The sign-on information display is shown.

PWDEXPITV Password expiration interval

Specifies the password expiration interval in days (1-366).

Type
*UINT2
Required
No
Default
*SAME
Range
1 to 366
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL, *NOMAX

*SAME
The value does not change.
*SYSVAL
System value QPWDEXPITV determines the interval.
*NOMAX
The password does not expire.

PWDCHGBLK Block password change

Specifies the period, in hours (1-99), after a successful password change during which the password cannot be changed again. This prevents reusing an expired password by changing it repeatedly. It does not restrict a security administrator using CHGUSRPRF.

Type
*UINT2
Required
No
Default
*SAME
Range
1 to 99
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL, *NONE

*SAME
The value does not change.
*SYSVAL
System value QPWDCHGBLK determines the block period.
*NONE
The password can be changed at any time.

LCLPWDMGT Local password management

Specifies whether the user profile password is managed on the local system. With *NO, the local IBM i password is set to *NONE and the password is sent to other products that do password synchronization.

Type
*CHAR
Required
No
Default
*SAME
Length
5
Case
Uppercase

Allowed values: *SAME, *YES, *NO

*SAME
The value does not change.
*YES
The password is managed on the local system.
*NO
The password is not managed locally. The user cannot change the password with CHGPWD or sign on directly.

MAXSIGN Maximum sign-on attempts

Specifies the maximum number of sign-on attempts allowed (1-25). When reached, the action set in system value QMAXSGNACN is performed.

Type
*UINT2
Required
No
Default
*SAME
Range
1 to 25
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL

*SAME
The value does not change.
*SYSVAL
System value QMAXSIGN determines the maximum.

LMTDEVSSN Limit device sessions

Specifies whether the number of device sessions allowed for the user is limited. It does not limit SYSREQ and second sign-on.

Type
*CHAR
Required
No
Default
*SAME
Length
7
Case
Uppercase

Allowed values: *SAME, *SYSVAL, *YES, *NO

*SAME
The value does not change.
*SYSVAL
System value QLMTDEVSSN determines whether the user is limited.
*NO
The user is not limited to a specific number of device sessions.
*YES
The user is limited to a single device session.

KBDBUF Keyboard buffering

Specifies the keyboard buffering value used when a job is initialized for this user profile.

Type
*CHAR
Required
No
Default
*SAME
Length
10
Case
Uppercase

Allowed values: *SAME, *SYSVAL, *NO, *TYPEAHEAD, *YES

*SAME
The value does not change.
*SYSVAL
System value QKBDBUF determines the value.
*NO
Type-ahead and attention key buffering are not active.
*TYPEAHEAD
Type-ahead is active, but attention key buffering is not.
*YES
Type-ahead and attention key buffering are both active.

MAXSTGLRG Maximum allowed storage large

Specifies the maximum auxiliary storage in kilobytes for permanent objects owned by this profile, in the system ASP and basic ASPs combined, and on each independent ASP. Cannot be specified together with MAXSTG.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *NOMAX

*SAME
The value does not change.
*NOMAX
As much storage as is required is assigned to this profile.

MAXSTG Maximum allowed storage

Specifies the maximum auxiliary storage in kilobytes for permanent objects owned by this profile, in the system ASP and basic ASPs combined, and on each independent ASP. Cannot be specified together with MAXSTGLRG.

Type
*INT4
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *NOMAX

*SAME
The value does not change.
*NOMAX
As much storage as is required is assigned to this profile.

PTYLMT Highest schedule priority

Specifies the highest scheduling priority (0 highest, 9 lowest) a job under this profile may have. JOBPTY and OUTPTY values cannot exceed it.

Type
*UINT2
Required
No
Default
*SAME
Range
0 to 9
Case
Uppercase

Suggested / special values: *SAME

*SAME
The value does not change.

JOBD Job description

Specifies the job description used for jobs started through subsystem work station entries. The library must be specified if the job description does not exist yet.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME

*SAME
The value does not change.
*LIBL
All libraries in the library list are searched until the first match is found.
*CURLIB
The current library for the thread is searched. If none, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job description Job description

Type
*NAME
Required
No
Default
QDFTJOBD
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

GRPPRF Group profile

Specifies the group profile whose authority is used when no specific authority is given to the user. The current user needs *OBJMGT and *CHANGE authority to the group profile.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
The value does not change.
*NONE
This user profile has no group profile.

OWNER Owner

Specifies the user profile that owns objects created by this user.

Type
*CHAR
Required
No
Default
*SAME
Length
7
Case
Uppercase

Allowed values: *SAME, *USRPRF, *GRPPRF

*SAME
The value does not change.
*USRPRF
The user profile associated with the job owns the object.
*GRPPRF
The group profile owns newly created objects and has all authority to them. Requires GRPPRF, and GRPAUT cannot be specified.

GRPAUT Group authority

Specifies the authority given to the group profile for newly created objects. Not allowed if OWNER(*GRPPRF) is specified.

Type
*CHAR
Required
No
Default
*SAME
Length
8
Case
Uppercase

Allowed values: *SAME, *NONE, *ALL, *CHANGE, *USE, *EXCLUDE

*SAME
The value does not change.
*NONE
No group authority is given.
*ALL
The user can perform all operations except those limited to the owner or controlled by *AUTLMGT authority, including changing ownership.
*CHANGE
The user can perform all operations except those limited to the owner or controlled by *OBJEXIST and *OBJMGT authority.
*USE
The user can perform basic operations such as running a program or reading a file, but cannot change the object.
*EXCLUDE
The user cannot access the object.

GRPAUTTYP Group authority type

Type
*CHAR
Required
No
Default
*SAME
Length
8
Case
Uppercase

Allowed values: *SAME, *PRIVATE, *PGP

SUPGRPPRF Supplemental groups

Type
*NAME
Required
No
Default
*SAME
Length
10
List limit
15
Case
Uppercase

Suggested / special values: *SAME, *NONE

ACGCDE Accounting code

Type
*CHAR
Required
No
Default
*SAME
Length
15
Case
Uppercase

Suggested / special values: *SAME, *BLANK

DOCPWD Document password

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *SAME, *NONE

MSGQ Message queue

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *USRPRF

Qualified parts (object, then library; write LIBRARY/OBJECT)

Message queue Message queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

DLVRY Delivery

Type
*CHAR
Required
No
Default
*SAME
Length
7
Case
Uppercase

Allowed values: *SAME, *NOTIFY, *BREAK, *HOLD, *DFT

SEV Severity code filter

Type
*UINT2
Required
No
Default
*SAME
Range
0 to 99
Case
Uppercase

Suggested / special values: *SAME

PRTDEV Print device

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *SAME, *WRKSTN, *SYSVAL

OUTQ Output queue

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *WRKSTN, *DEV

Qualified parts (object, then library; write LIBRARY/OBJECT)

Output queue Output queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

ATNPGM Attention program

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL, *NONE, *ASSIST

Qualified parts (object, then library; write LIBRARY/OBJECT)

Attention program Attention program

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

SRTSEQ Sort sequence

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL, *HEX, *LANGIDUNQ, *LANGIDSHR

Qualified parts (object, then library; write LIBRARY/OBJECT)

Sort sequence Sort sequence

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

LANGID Language ID

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL

CNTRYID Country or region ID

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL

CCSID Coded character set ID

Type
*INT4
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL, *HEX

CHRIDCTL Character identifier control

Type
*CHAR
Required
No
Default
*SAME
Length
9
Case
Uppercase

Allowed values: *SAME, *SYSVAL, *DEVD, *JOBCCSID

SETJOBATR Locale job attributes

Type
*CHAR
Required
No
Default
*SAME
Length
7
List limit
6
Case
Uppercase

Allowed values: *SAME, *SYSVAL, *NONE, *CCSID, *DATFMT, *DATSEP, *DECFMT, *SRTSEQ, *TIMSEP

LOCALE Locale

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL, *NONE, *C, *POSIX

USROPT User options

Type
*CHAR
Required
No
Default
*SAME
Length
9
List limit
7
Case
Uppercase

Allowed values: *SAME, *NONE, *CLKWD, *EXPERT, *ROLLKEY, *NOSTSMSG, *STSMSG, *HLPFULL, *PRTMSG

UID User ID number

Type
*UINT4
Required
No
Default
*SAME
Range
1 to 4294967294
Case
Uppercase

Suggested / special values: *SAME

GID Group ID number

Type
*UINT4
Required
No
Default
*SAME
Range
1 to 4294967294
Case
Uppercase

Suggested / special values: *SAME, *GEN, *NONE

HOMEDIR Home directory

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *USRPRF

EIMASSOC EIM association

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

EIM identifier EIM identifier

Type
*CHAR
Required
No
Length
50
Case
Uppercase

Suggested / special values: *USRPRF

Association type Association type

Type
*CHAR
Required
No
Length
7
Case
Uppercase

Allowed values: *TARGET, *SOURCE, *TGTSRC, *ADMIN, *ALL

Association action Association action

Type
*CHAR
Required
No
Default
*REPLACE
Length
8
Case
Uppercase

Allowed values: *REPLACE, *ADD, *REMOVE

Create EIM identifier Create EIM identifier

Type
*CHAR
Required
No
Default
*NOCRTEIMID
Length
11
Case
Uppercase

Allowed values: *NOCRTEIMID, *CRTEIMID

USREXPDATE User expiration date

Type
*DATE
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *NONE, *USREXPITV

USREXPITV User expiration interval

Type
*UINT2
Required
No
Range
1 to 366
Case
Uppercase

IBM command documentation

Generated from os/cl/catalog/CHGUSRPRF.json and os/cl/help/CHGUSRPRF.json.