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.
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.
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.
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.
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.
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.
Generated from os/cl/catalog/CHGFCNUSG.json and os/cl/help/CHGFCNUSG.json.