The authority hiding in group profiles

A few weeks back, I wrote about hunting down profiles that hold *ALLOBJ, and someone very sharp replied with exactly the right follow-up question: what about the authority people inherit through their group profiles? So let’s close that loop today, because a lot of hidden authority lives there.

On IBM i, a user can hold very little authority directly and still be enormously powerful, because they belong to a group profile that carries the real authority. If you only ever audit what profiles hold directly, you will miss this entirely, and you will confidently declare a user harmless who can, in fact, touch everything.

Here is how you see the group memberships laid out:

SELECT GROUP_PROFILE_NAME,
      USER_PROFILE_NAME
 FROM QSYS2.GROUP_PROFILE_ENTRIES
 ORDER BY GROUP_PROFILE_NAME, USER_PROFILE_NAME;

That gives you every group profile and the members that belong to it. Now cross-reference the powerful groups, the ones that carry special authorities or own sensitive objects, against who is actually in them. That membership list is the real authority map, and it’s often out of date. People change roles and keep their old group. A group created for one department slowly accumulates members from three. Somebody was added “temporarily” for a project that ended in 2022.

The principle here runs through all good security work on this platform. Authority is not just what a profile holds. It is what a profile can reach, through every path, including the ones that are easy to forget. Group profiles are the most common of those forgotten paths.

Audit your group memberships alongside your special authorities. The two together tell you the truth about who can do what, and the truth is what you want before an auditor or an incident finds it for you.

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