Who has *ALLOBJ on your system?

Go find out how many users on your box have *ALLOBJ. I will wait.

SELECT AUTHORIZATION_NAME, TEXT_DESCRIPTION, SPECIAL_AUTHORITIES,
      LAST_USED_TIMESTAMP, STATUS
 FROM QSYS2.USER_INFO
 WHERE SPECIAL_AUTHORITIES LIKE '%*ALLOBJ%'
 ORDER BY LAST_USED_TIMESTAMP;

Two things usually happen when someone runs that for the first time.
The first is the count. It is never five. It is nineteen, or thirty-one, and half of them are named things like QSECOFR2 or TEMPADMIN or the initials of somebody who left in 2019. That LAST_USED_TIMESTAMP column is the uncomfortable one. Profiles that have not signed on in three years, still enabled, still holding the keys to every object on the system.

The second thing is worse, and it is the one people miss. That query only shows profiles with *ALLOBJ granted directly. It does not show the users who inherit it through a group profile or a supplemental group. So a clean-looking list can still be hiding a dozen people with full authority. Check GROUP_PROFILE_NAME and SUPPLEMENTAL_GROUP_LIST in that same view and see who is riding along.

Nobody ever set out to hand *ALLOBJ to a third of your shop. It happens one exception at a time, over years, because a vendor needed it for an install or a developer needed it “just for today.” Nobody ever goes back and takes it away. No one.

Today is a fine day to go back and take it away.

Start with the disabled and the never-used. That is the easy half, and it is free.
#IBMi #Security #Power

Originally posted on LinkedIn. Join the conversation there.

Get new posts by email

Practical IBM i tips on SQL services, security and backup, sent when I publish. No spam, unsubscribe anytime.

Leave a Reply