Stop guessing with Authority Collection

Object authority on IBM i is powerful, precise, and almost impossible to reason about by staring at it. So most people don’t. They grant what makes the error message go away and move on, and over the years the authority model becomes something nobody fully understands.

There is a better way, and it has been built into the operating system for several releases now. It is called Authority Collection, and it does something genuinely clever: it watches what authority is actually used, so you can stop guessing.

You turn it on for a user or an object, let real work happen, and the system records the authority that was actually required for each access. Then you query the results:

SELECT OBJECT_NAME, OBJECT_LIBRARY, OBJECT_TYPE,
      SYSTEM_USER_NAME,
      REQUIRED_AUTHORITY, DETAILED_REQUIRED_AUTHORITY
 FROM QSYS2.AUTHORITY_COLLECTION
 ORDER BY OBJECT_LIBRARY, OBJECT_NAME;

Now you are no longer guessing what a user needs. You can see it. And the payoff is the thing security people have wanted forever: you can confidently remove authority that is never used, because you have evidence instead of a hunch. That is how you get from “everybody has *ALLOBJ because we were afraid to take it away” to a least-privilege model you can actually defend to an auditor.

This is a bigger topic than one post can hold, and it is worth the study. If you have never turned on Authority Collection, pick one non-critical application, enable it, and just look at what comes back. You will learn more about how your system really works in a week of collection than in a year of reading authority screens. Don’t forget to turn it off afterward.

Least privilege is not about locking people out. It is about knowing, with evidence, exactly what each person needs, and granting that and nothing more.

#IBMi #Security #PowerSystems #IBMChampion

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