Command reference / sec

CHGFCNUSG

Change Function Usage

Updates default usage or user and group access for a registered function.

Allowed environments: *ALL. Positional parameters: 1.

Parameters

FCNID Function ID

Sets the function identifier for which the usage information is to be changed.

Type
*NAME
Required
Yes
Length
30
Case
Uppercase
name
Enter the name of the function ID for which the usage information is to be changed.

USER User

Enter the name of the user profile whose function usage information is to be changed.

Type
*NAME
Required
No
Length
10
Case
Uppercase
name
Enter the name of the user profile whose function usage information is to be changed.

USAGE Usage

Sets the allowed usage of the user profile specified for the User (USER) parameter.

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

Allowed values: *NONE, *ALLOWED, *DENIED

*ALLOWED
The user profile is allowed to use the function.
*DENIED
The user profile is not allowed to use the function unless the function provides some other way to authorize users.
*NONE
The user profile will not be explicitly allowed or denied usage of the function.

DEFAULT Default authority

Sets the default usage for the function. The default usage is used if the user or one of its groups does not have a specific usage setting.

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

Allowed values: *SAME, *ALLOWED, *DENIED

*SAME
Keep the current setting.
*ALLOWED
User profiles without a usage setting for the function are allowed to use the function.
*DENIED
User profiles without a usage setting for the function are not allowed to use the function unless the function provides some other way to authorize users.

ALLOBJAUT *ALLOBJ special authority

Controls whether all object (*ALLOBJ) special authority may be used to give a user access to the function.

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

Allowed values: *SAME, *USED, *NOTUSED

*SAME
Keep the current setting.
*USED
A user with *ALLOBJ special authority is always allowed to use the function.
*NOTUSED
For a user with *ALLOBJ special authority to use the function, the usage information specified for the function must indicate that the user is allowed to use the function for one of the following reasons: the user is allowed usage, one of its groups is allowed usage, or the default setting is to allow usage.

Examples

CHGFCNUSG FCNID(QIBM_SERVICE_TRACE) DEFAULT(*DENIED) USER(QSRVBAS) USAGE(*ALLOWED)

Denies access to the QIBM_SERVICE_TRACE function for the default user. It also allows the QSRVBAS user profile to use the function.

IBM command documentation

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