TechTip: Clean Up Those Unused User Profiles

Security - Other
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

If you want to clean up user profiles that have sat idle but do not want to take the time and effort to do this manually, IBM comes to the rescue once again. There is a set of commands you can use to manage inactive user profiles. These include Analyze Profile Activity (ANZPRFACT), Change Active Profile List (CHGACTPRFL), and Display Active Profile List (DSPACTPRFL).

Analyze Profile Activity (ANZPRFACT)

This command sets up a job scheduler entry, QSECIDL1, that runs nightly. This job checks whether user profiles have been inactive for the number of days specified when you run the command. The date used is the last used date, the restore date, or the creation date, in that order. The nightly job disables user profiles that it finds to have been inactive for the number of days specified. When user profiles are disabled, messages are sent to the user that ran the ANZPRFACT command.

Several IBM Q* user profiles are never considered inactive, so you don't need to be concerned that QSPL or QSYS, for example, will not work anymore.

Of course, we often have user profiles that are reserved for owning objects or for adopting authority and that never sign on. These should not be considered inactive, so there is a list of profiles that are always to be treated as active ones. The Change Active Profile List (CHGACTPRFL) command, which I'll discuss next, lets you manage this list.

ANZPRFACT INACDAYS(360) sets up the QSECIDL1 job to run every morning at 1:00 a.m., as shown in Figure 1. You can change this schedule if you like. Run ANZPRFACT INACDAYS(*NOMAX) to turn off this process; it removes the entry from the job scheduler.

http://www.mcpressonline.com/articles/images/2002/Clean%20up%20those%20unused%20user%20profilesV4--07070600.png

Figure 1: The ANZPRFACT command puts the QSECIDL1 job on the scheduler. (Click images to enlarge.)

Change Active Profile List (CHGACTPRFL)

You can specify up to 10 user profiles on the CHGACTPRFL command and select whether to add them to the list of active profiles or to remove them.

CHGACTPRFL USRPRF(TOM DICK HARRY)adds users TOM, DICK, and HARRY to the list of user profiles that will never be disabled by this process.

CHGACTPRFL USRPRF(TOM DICK HARRY) ACTION(*REMOVE)removes those users from the active profile list.

Display Active Profile List (DSPACTPRFL)

You can view or print the list of active user profiles by running the DSPACTPRFL command. The list will look something like Figure 2:

http://www.mcpressonline.com/articles/images/2002/Clean%20up%20those%20unused%20user%20profilesV4--07070601.png

Figure 2: View the list of active user profiles with DSPACTPRFL.

Note that the Tivoli licensed product added its users to the list when it was installed.

You need *ALLOBJ, *SECADM, and *JOBCTL special authorities to run the ANZACTPRF command and *ALLOBJ for the CHGACTPRFL and DSPACTPRFL commands.

Vern Hamberg works on the software development team of RJS Software Systems, primarily in native iSeries applications. He has over 15 years experience on the various System i machines. He can be reached at This email address is being protected from spambots. You need JavaScript enabled to view it..

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: