Question & Answer
Question
The objective of this document is to provide a clear and structured method for analyzing user profile allocated storage on IBM i systems. By using the QSYS2.USER_STORAGE SQL view, administrators can identify user profiles that consume a high number of authorization entries, understand how those entries are allocated, and proactively manage storage and profile limits to prevent operational or security-related issues.
Answer
Overview
On IBM i, each user profile consumes system storage through authorization, ownership entries and storage allocated to owned objects. These entries are created when a user profile owns objects, has private authorities, belongs to authorization lists or primary groups.
Uncontrolled growth of these entries can lead to system storage pressure, user profile allocation failures, and increased complexity in security administration and auditing activities.
SQL Used for Analysis:
Using the Run SQL Scripts tool, run the following SQL Statement:
SELECT USER_NAME,
OWNER_ENTRIES,
PRIVATE_AUTHORITY_ENTRIES,
AUTHORIZED_USER_ENTRIES,
PRIMARY_GROUP_ENTRIES,
TOTAL_PROFILE_ENTRIES,
AVAILABLE_PROFILE_ENTRIES,
DECIMAL(
(DECIMAL(AVAILABLE_PROFILE_ENTRIES, 21, 2) /
(DECIMAL(AVAILABLE_PROFILE_ENTRIES, 21, 2) + DECIMAL(TOTAL_PROFILE_ENTRIES, 21, 2))) * 100,
5,
2) AS PERCENT_FREE,
STORAGE_USED,
MAXIMUM_STORAGE_ALLOWED
FROM QSYS2.USER_STORAGE
ORDER BY TOTAL_PROFILE_ENTRIES DESC;
Sample Report:
| USER NAME | OWNER ENTRIES | PRIVATE AUTHORITY ENTRIES | AUTHORIZED USER ENTRIES | PRIMARY GROUP ENTRIES | TOTAL PROFILE ENTRIES | AVAILABLE PROFILE ENTRIES | PERCENT FREE | STORAGE USED | MAXIMUM STORAGE LIMIT |
| QSYS | 1864 | 401576 | 310853 | 88859 | 401845 | 199598424 | 99.79 | 550081941696 | |
| QEJBSVR | 155 | 88463 | 87889 | 419 | 88463 | 199911537 | 99.95 | 3302948 | |
| QWQADMIN | 51 | 46399 | 43190 | 3158 | 46399 | 199953601 | 99.97 | 6407800 | |
| QWEBADMIN | 894 | 37241 | 36132 | 215 | 39747 | 199962759 | 99.98 | 7521304 | 17521304 |
| QSECOFR | 1988 | 32425 | 29229 | 1208 | 37242 | 199967575 | 99.98 | 1363624 | |
| BIMBRA | 19 | 24402 | 24367 | 16 | 32467 | 199975598 | 99.98 | 5156580 | |
| QSPL | 297 | 17959 | 17567 | 95 | 24402 | 199982041 | 99.99 | 3100560 | |
| JPEHRSON | 467 | 15952 | 15291 | 194 | 15952 | 199984048 | 99.99 | 28565684 | 128565684 |
| QLWISVR | 12623 | 15873 | 3112 | 138 | 15873 | 199984127 | 99.99 | 274840 | |
| RHDIESER | 4 | 12421 | 3386 | 9031 | 12421 | 199987579 | 99.99 | 373060 | |
| QSRV | 11418 | 11432 | 4 | 10 | 11434 | 199988568 | 99.99 | 1508 | |
| QTMHHTTP | 815 | 9882 | 3288 | 5779 | 9838 | 199990118 | 99.99 | 74528 | |
| QDBSHR | 1 | 8050 | 8049 | 0 | 8141 | 199991950 | 99.99 | 22814866853184 | |
| THUNDER | 102 | 7264 | 7072 | 90 | 7264 | 199992736 | 99.99 | 1555260 | |
| MIKSWENS | 96 | 6985 | 6469 | 420 | 6986 | 199993015 | 99.99 | 5342636 | |
| QDIRSRV | 4835 | 6840 | 1986 | 19 | 6828 | 199993160 | 99.99 | 139072 | |
| HENDERAN | 3 | 6528 | 6496 | 29 | 6528 | 199993472 | 99.99 | 1003124 | |
| QCOLSRV | 405 | 5824 | 5419 | 0 | 5457 | 199994176 | 99.99 | 90624552 |
Explanation of Key Columns:
USER NAME
The name of the user profile being analyzed.
OWNER ENTRIES
This is the number of entries for objects for which this user is the owner.
PRIVATE AUTHORITY ENTRIES
This is the number of entries for objects for which this user has a private authority. This value is often the primary driver of profile growth.
AUTHORIZED USER ENTRIES
This is the number of entries for other users that have private authorities to objects for which this user is the owner
PRIMARY GROUP ENTRIES
This is the number of entries for objects for which this user is the primary group.
TOTAL PROFILE ENTRIES
This is the total of owner, private authority, authorized user, and primary group entries used
AVAILABLE PROFILE ENTRIES
The number of authority-related entries available to the user for this ASP group
PERCENT FREE
Percent of of available free entries.
STORAGE USED
The amount of auxiliary storage, in kilobytes, occupied by the user's owned objects for this ASP group.
MAXIMUM STORAGE LIMIT
The maximum amount of auxiliary storage, in kilobytes, that can be assigned to store permanent objects owned by the user. Contains the null value if the user does not have a maximum amount of allowed storage.
Maximum Limites for each profile:
| Version Of Operating System | Maximum Entries |
| 6.1 | 50 million |
| 7.1 | 50 million |
| 7.2 | 50 million |
| 7.3 | 50 million |
| 7.4 | 50 million |
| 7.5 | 200 million |
| 7.6 | 200 million |
Explanation of Key Metrics
The query retrieves both permanent storage and user authority entries allocated to each user profile. The most critical columns include PRIVATE_AUTHORITY_ENTRIES, which commonly drive profile growth; TOTAL_PROFILE_ENTRIES, which reflects the total allocated capacity; and AVAILABLE_PROFILE_ENTRIES, which indicates remaining headroom before profile extension is required.
Interpreting the Results
Profiles with high counts of private authority entries should be reviewed to determine whether authorization lists can be used instead. Profiles with low available entry counts may be approaching their allocation limits and could experience failures when new authorities or objects are assigned.
Recommended Actions
Administrators should periodically review user storage metrics, reduce excessive private authorities, leverage authorization lists, and monitor profiles trending toward capacity limits. Incorporating this analysis into routine system health checks can significantly reduce long-term security and storage risks.
Adicional Resources:
- How do you create a report of all objects owned by a user profile
- Finding Authorized User Entries for a User Profile
- Finding Private Authorities for a User Profile
- USER_STORAGE view
- Message MCH2804 on a User Profile
- How do you create a report for Users approaching the Maximum Storage defined in their profiles.
- Getting Message MCH2804 Tried to go larger than storage limit for object &1 for a user profile, however PRTPRFINT does not show the profile as being full.
- Tool to List Private Authorities
Was this topic helpful?
Document Information
Modified date:
30 March 2026
UID
ibm17268025