Use IBM i Authorization Lists to Control Access

  • Home
  • /
  • Blog
  • /
  • Use IBM i Authorization Lists to Control Access

April 11, 2022

How can I use IBM i authorization lists to control access?

IBM i (AS400/iSeries) authorization lists are a powerful tool for controlling access to objects within your system. Let’s explore how you can effectively use them:

  1. Understanding Authorization Lists:
  • An authorization list is an object that contains a list of user profiles and their associated object authorities.
  • By granting or denying access to the authorization list, you control access to all objects covered by that list.
  • Authorization lists provide a layer of abstraction between users and objects, simplifying security management.
  1. Creating an Authorization List:
  • To create an authorization list, use the CRTAUTL command.
  • Specify the list’s name, description, and any initial user profiles you want to include.
  • For example:
    shell CRTAUTL AUTL(MYLIB/MYAUTL) TEXT('My Authorization List') AUT(*EXCLUDE) OBJAUT(*ALL)
    This creates an authorization list named MYAUTL in library MYLIB, excluding all users initially.
  1. Adding User Profiles:
  • Use the ADDAUTLE command to add user profiles to an authorization list.
  • For example:
    shell ADDAUTLE AUTL(MYLIB/MYAUTL) USER(USER1) AUT(*USE)
    This grants use authority to USER1 for all objects covered by MYAUTL.
  1. Assigning Authorization Lists to Objects:
  • Use the CHGOBJAUT command to assign an authorization list to an object.
  • For example:
    shell CHGOBJAUT OBJ(MYLIB/MYFILE) OBJTYPE(*FILE) AUTL(MYLIB/MYAUTL)
    This associates MYAUTL with the file MYFILE.
  1. Checking Authorization List Entries:
  • Use the DSPAUTLE command to display the contents of an authorization list.
  • For example:
    shell DSPAUTLE AUTL(MYLIB/MYAUTL)
    This shows the user profiles and their associated authorities in MYAUTL.
  1. Reviewing and Maintaining:
  • Regularly review and update your authorization lists.
  • Remove or modify user profiles as needed.
  • Ensure that only authorized users have access to critical objects.

Remember that authorization lists provide a flexible and efficient way to manage security. By using them effectively, you can control access to your IBM i objects with precision. If you need further assistance or have specific scenarios, feel free to ask in the comment section!

NickLitten


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Shameless Trekkie, Belligerent Nerd, Englishman Abroad and Passionate Eater of Cheese and Biscuits.

Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day.

Enjoy your stay, feel free to comment and remember: If at first you don't succeed then skydiving probably isn't a hobby you should look into.

Nick Litten

related posts:

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Subscribe NOW
7-day free trial

Take This Course with ALL ACCESS

Unlock your Learning Potential with instant access to every course and all new courses as they are released.
 [ For Serious Software Developers only ]

Online Learning for IBM i Software Technology Professionals

“The more that you read, the more things you will know. The more that you learn, the more places you’ll go.” – Dr. Seuss

>