How To
Summary
Beginning with IBM i 7.6, audit handling for *IOSYSCFG authority failures has changed significantly. Instead of generating traditional AF-K (Authority Failure) entries, the system now logs these events as GR-F (Function Usage) audit records. This reflects a shift toward tracking failures at the function-usage level rather than simple authority checks. As a result, organizations must adjust their audit monitoring and interpretation processes, as well as ensure appropriate function usage permissions are configured to align with the enhanced security model.
Objective
IBM i *IOSYSCFG Audit Failures - Version 7.6
Starting with IBM i version 7.6, the audit journal behavior for *IOSYSCFG (Input/Output System Configuration) special authority failures has changed. This document explains the new audit record types and the additional authorization requirements introduced in this release.
Key Changes in Version 7.6
Audit Record Type Change
In IBM i 7.6, when a user lacks authority to perform I/O system configuration operations, the system generates GR-F (Function Usage) audit records instead of the traditional AF-K (Authority Failure) entries.
Previous Behavior (pre-7.6):
- *IOSYSCFG authority failures generated
AF-Kaudit journal entries
New Behavior (7.6+):
- *IOSYSCFG authority failures generate
GR-Faudit journal entries - These records specifically track function usage authorization failures
AF-K (Authority Failure) audit journal entries in version 7.6 and later.Function Usage Identifier
The relevant function usage identifier for I/O system configuration operations is:
Function ID: QIBM_IOSYSCFG_VIEW
Function Name: View Input/Output System ConfigurationAuthorization Requirements
Required Authority
Users must have one of the following to perform I/O system configuration operations:
*IOSYSCFGspecial authority, OR- Access to the
QIBM_IOSYSCFG_VIEWfunction usage identifier
Affected Commands
Commands that require this authorization include (but are not limited to):
- WRKCFGSTS - Work with Configuration Status
- Display Configuration List (DSPCFGL)
- Display Class-of-Service Desc (DSPCOSD)
- Display Controller Description (DSPCTLD)
- Display Device Description (DSPDEVD)
- Work with Configuration Lists (WRKCFGL)
- Other I/O system configuration commands
Understanding GR-F Audit Records
What is a GR-F Record?
GR-F audit journal entries are generated when:
- A user attempts to use a function that requires specific function usage authority
- The user does not have the required function usage identifier access
- The operation is denied due to insufficient authorization
Key Fields in GR-F Records
When reviewing GR-F audit records for *IOSYSCFG operations, look for:
| Column Name | Description | Example Value |
|---|---|---|
ENTRY_TYPE | Audit journal entry type | F (Function Usage) |
ENTRY_TYPE_DETAIL | Detailed entry description | Function registration operations |
FUNCTION_NAME | The function usage identifier | QIBM_IOSYSCFG_VIEW |
ACTION | Action attempted | ZR (varies) |
ACTION_DETAIL | Action description | Read, Check Usage (varies) |
USER_NAME | User who attempted the operation | (varies) |
QUALIFIED_JOB_NAME | Full job identifier | (varies) |
ENTRY_TIMESTAMP | When the operation occurred | (timestamp) |
GR-F Record Structure
GR-F audit records for function usage contain:
ENTRY_TYPE: Set toFfor Function Usage entriesFUNCTION_NAME: Contains the function ID (e.g.,QIBM_IOSYSCFG_VIEW) - identifies which specific function the user attempted to accessACTIONandACTION_DETAIL: Describe the specific operation attempted
Monitoring and Auditing
SQL Query to Monitor GR-F Failures
Use the following SQL query to identify users attempting I/O system configuration operations without proper authority:
SELECT ENTRY_TIMESTAMP,
USER_NAME,
JOB_NAME,
QUALIFIED_JOB_NAME,
ENTRY_TYPE,
ENTRY_TYPE_DETAIL,
ACTION,
ACTION_DETAIL,
FUNCTION_NAME
FROM TABLE(SYSTOOLS.AUDIT_JOURNAL_GR(
STARTING_TIMESTAMP => CURRENT TIMESTAMP - 7 DAYS
))
WHERE ENTRY_TYPE = 'F'
AND FUNCTION_NAME = 'QIBM_IOSYSCFG_VIEW'
ORDER BY ENTRY_TIMESTAMP DESC;Query Explanation:
SYSTOOLS.AUDIT_JOURNAL_GR()- Table function specifically designed for GR-type audit journal entries (IBM Documentation)ENTRY_TYPE = 'F'- Filters for Function Usage entries (GR-F records)FUNCTION_NAME = 'QIBM_IOSYSCFG_VIEW'- Specifically identifies *IOSYSCFG-related function usage attempts- This query captures all attempts to use the *IOSYSCFG view function, including both successful and failed attempts
Interpreting Results
Each record indicates:
- Who attempted the operation (
USER_NAME) - When the attempt occurred (
ENTRY_TIMESTAMP) - Which function they tried to use (
FUNCTION_NAME=QIBM_IOSYSCFG_VIEW) - Which job made the attempt (
QUALIFIED_JOB_NAME) - What action was attempted (
ACTIONandACTION_DETAIL) - Entry type (
ENTRY_TYPE=Ffor Function Usage)
These GR-F records capture all attempts to use the QIBM_IOSYSCFG_VIEW function, providing visibility into who is attempting to access I/O system configuration operations.
Sample Report Output
Below is an example of what the query results look like:
| ENTRY_TIMESTAMP | USER_NAME | JOB_NAME | QUALIFIED_JOB_NAME | ENTRY_TYPE | ENTRY_TYPE_DETAIL | ACTION | ACTION_DETAIL | FUNCTION_NAME |
|---|---|---|---|---|---|---|---|---|
| 2026-06-16 08:40:07.914928 | HUGO | QPADEV000N | 105817/HUGO/QPADEV000N | F | Function registration operations | ZR | Read | QIBM_IOSYSCFG_VIEW |
| 2026-06-16 09:15:23.445612 | JSMITH | QZDASOINIT | 106234/JSMITH/QZDASOINIT | F | Function registration operations | ZR | Read | QIBM_IOSYSCFG_VIEW |
| 2026-06-16 10:22:41.778901 | SYSADMIN | QPADDEC001 | 106891/SYSADMIN/WRKCFGSTS | F | Function registration operations | ZR | Read | QIBM_IOSYSCFG_VIEW |
| 2026-06-16 11:05:18.332145 | APPUSER | QPADEV0002 | 107456/APPUSER/QPADEV0002 | F | Function registration operations | ZR | Read | QIBM_IOSYSCFG_VIEW |
Interpreting These Records:
Each row represents an attempt to access I/O system configuration operations:
- HUGO (08:40:07) - Interactive job QPADEV000N
- JSMITH (09:15:23) - Database connection job QZDASOINIT
- SYSADMIN (10:22:41) - WRKCFGSTS command execution
- APPUSER (11:05:18) - Interactive job QPADEV0002
All records show:
- Action: Read operation (ZR)
- Function: QIBM_IOSYSCFG_VIEW (View Input/Output System Configuration)
- Entry Type: F (Function registration operations)
These GR-F records indicate that multiple users attempted to use commands or operations requiring *IOSYSCFG authority or access to the QIBM_IOSYSCFG_VIEW function. The presence of these records shows the system is tracking function usage for this security-sensitive operation across different job types and users.
Granting Access
Option 1: Grant *IOSYSCFG Special Authority
CHGUSRPRF USRPRF(username) SPCAUT(*IOSYSCFG)
Use Case: Appropriate for system administrators who need broad I/O configuration access.
Option 2: Grant Function Usage Access
/* Grant user access to the function usage identifier */
CHGFCNUSG FCNID(QIBM_IOSYSCFG_VIEW)
USER(username)
USAGE(*ALLOWED)
Use Case: Appropriate for users who need limited, specific access to view I/O configuration without full *IOSYSCFG authority.
Example:
CHGFCNUSG FCNID(QIBM_IOSYSCFG_VIEW)
USER(JSMITH)
USAGE(*ALLOWED)This grants user JSMITH access to use the QIBM_IOSYSCFG_VIEW function without granting full *IOSYSCFG special authority.
Best Practices
Security Recommendations
- Principle of Least Privilege
- Grant function usage access (
QIBM_IOSYSCFG_VIEW) rather than *IOSYSCFG special authority when possible - Reserve *IOSYSCFG for administrators who need comprehensive I/O configuration capabilities
- Grant function usage access (
- Regular Auditing
- Monitor GR-F audit records regularly to identify unauthorized access attempts
- Review users with *IOSYSCFG authority periodically
- Audit function usage identifier access lists
- Documentation
- Document which users have been granted access and why
- Maintain a record of business justifications for access grants
- Alerting
- Consider implementing automated alerts for repeated GR-F failures
- Investigate patterns of unauthorized access attempts
Migration Considerations
When upgrading to IBM i 7.6:
- Update Monitoring Scripts
- Modify existing audit monitoring to look for GR-F records instead of AF-K
- Update security reports to reflect the new audit record type
- Review Existing Authority
- Identify users who currently have *IOSYSCFG
- Determine if function usage access would be more appropriate
- Test Applications
- Verify that applications using I/O configuration commands function correctly
- Ensure service accounts have appropriate authorization
Related Documentation
- IBM i 7.6 WRKCFGSTS Command Reference
- SYSTOOLS.AUDIT_JOURNAL_GR Table Function
- IBM i Security Reference (SC41-5302)
- IBM i Audit Journal Reference
Summary
IBM i 7.6 introduces a more granular approach to I/O system configuration security through function usage identifiers. The shift from AF-K to GR-F audit records for *IOSYSCFG specifically provides better tracking of function-specific authorization failures.
Key Takeaway:
This audit record change applies only to *IOSYSCFG special authority. All other special authority failures continue to use AF-K audit records as before.
Organizations should update their security monitoring processes to accommodate this change and consider using function usage identifiers for more precise access control.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
16 June 2026
UID
ibm17276608