• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Admin Alert: The Joys and Pains of Automatically Disabling User Profiles

    April 13, 2005 Joe Hertvik

    In previous Admin Alerts, I discussed two ways to activate and deactivate individual user profiles by using OS/400 Activation Entries and OS/400 Expiration Schedule Entries. While these features disable and enable individual profiles, they do nothing to automatically disable any OS/400 user profiles that have been inactive for a set number of days. That’s where OS/400’s Analyze Profile Activity command (ANZPRFACT) comes in, a valuable technique that contains one nasty pitfall.

    Used properly, ANZPRFACT automatically disables any user profile that has not been used in a certain number of days. If your security policy called for automatically disabling user profiles that have not been active in the last 30 days, for example, you could accomplish that task by calling ANZPRFACT in the following way:

    ANZPRFACT INACDAYS(30)

    Once activated this way, ANZPRFACT configures a nightly scheduled job called QSECIDL1, which examines all the user profiles on your system and automatically disables any non-IBM profiles that have not been active during the last 30 days (or whatever number of days you specified in the number of inactive days parameter, INACDAYS). IBM uses the last used date associated with each user profile to determine if the profile has been active during that time period. If the profile had never signed on to your system–as specified when its last used date is blank–OS/400 will use the profile’s last restored date as its last used date. QSECIDL1 disables inactive user profiles every night, and messages containing the name of each disabled user profile are sent to the message queue of the person who last ran the command.

    In i5/OS V5R3, the QSECIDL1 job is scheduled to run in the wee hours of the morning, usually at 1:00 AM, but you can easily change its start time by editing the QSECIDL1 job scheduler entry with either the Work with Job Schedule Entries (WRKJOBSCDE) or the Change Job Schedule Entry (CHGJOBSCDE) command.

    If you change your mind and decide to deactivate ANZPRFACT processing, you can turn it off by running the command with the INACDAYS parameter equal to *NOMAX, like this:

    ANZPRFACT INACDAYS(*NOMAX)

    ANZPRFACT is a great tool for automatically limiting the number of user profiles that can sign on to your system, but it can also accidentally disable valid user profiles that are critical to system processing. IBM exempts a fair number of OS/400 system profiles (user profiles that begin with the letter ‘Q’) from being affected by ANZPRFACT processing. Exempted IBM system profiles that should never be disabled include QSECOFR, QSPL (the Spool User profile), and QTCP (for running TCP/IP applications). You can see the complete list of user profiles that are exempted from ANZPRFACT processing by pressing Help (F1) while prompting the ANZPRFACT command.

    Because many OS/400 server jobs–including third party packages–require a valid user profile that will never be disabled to run, IBM offers a function to add non-IBM profiles to an active profile list. User profiles on the active profile list will be skipped by ANZPRFACT as it runs its daily processing.

    To view your machine’s active profile list, use the Display Active Profile List (DSPACTPRFL) command:

    DSPACTPRFL

    This displays the current list of active user profiles. If you want to add a profile to the list, use the Change Active Profile List (CHGACTPRFL) command, as follows:

    CHGACTPRFL USRPRF(profile_name) ACTION(*ADD)

    And this command will add a user profile name to the list. Multiple profiles can be added to the list through one CHGPRFL command.

    While user profiles on this list are immune from being disabled through ANZPRFACT processing, they can still be disabled through other OS/400 functions, such as the OS/400 security function that automatically disables any user profile that is used in a set number of consecutive, incorrect sign-on attempts (as controlled by the QMAXSGNACN and QMAXSIGN system values).


    When using ANZPRFACT, IBM recommends that the active profile list should contain any user profiles that own application objects or are used by applications that do not manually sign on to the system (such as profiles that are used to run batch server jobs). If you don’t add those profiles to this list in an ANZPRFACT scenario, you could suddenly see key server applications fail when the user profile the application runs under passes its expiration date and is automatically disabled by OS/400.

    To remove an existing user profile from the active profiles list, run the CHGACTPRFL command with the Action parameter (ACTION) equal to *REMOVE, like this:

    CHGACTPRFL USRPRF(profile_name) ACTION(*REMOVE)

    It’s worth noting that user profiles are also removed from the list whenever a profile is deleted by using iSeries Navigator or the green screen Delete User Profile command (DLTUSRPRF).

    If you decide to use ANZPRFACT to automatically disable inactive user profiles, it’s critical to create and maintain your list of protected active user profiles to keep your system server jobs running smoothly.

    Click here to contact Joe Hertvik by e-mail.

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Tags:

    Sponsored by
    ARCAD Software

    [IBM i Auditing Tool] Discover the Health of Your IBM i Applications in Minutes with ARCAD iCheck-up

    How well do you really know the health of your IBM i applications? Hidden complexity, unused code, and synchronization issues can make maintenance more challenging and slow down modernization efforts.

    What if you could identify these issues in just a few clicks, without installing anything on your IBM i system?

    Meet ARCAD iCheck-up, an auditing tool designed to give IBM i teams a clear, actionable overview of their applications in minutes.

    With iCheck-up, you can:

    • Assess code complexity: Identify complex source files and prioritize refactoring efforts.
    • Detect dead code: Uncover unused code that may be cluttering your applications.
    • Spot synchronization issues: Identify inconsistencies between source files and compiled objects.
    • Track code changes: Explore modification history and better understand your application’s evolution.
    • Generate a shareable report: Get a comprehensive, easy-to-read HTML report with key metrics and insights.

    Fast, simple, and secure. iCheck-up runs from Windows, requires no installation on your IBM i system, and leaves no files or code behind. Your generated report contains metrics only, keeping your source code confidential.

    Whether you’re maintaining existing applications, planning modernization, or looking to improve code quality, iCheck-up helps you make more informed decisions.

    Ready to gain deeper insights into your IBM i applications? Discover ARCAD iCheck-up and take the first step toward better code quality today!

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Special Files Can Do It All Network Intelligence Adds iSeries Monitoring to Security Appliances

    Leave a ReplyCancel reply

Volume 5, Number 15 -- April 13, 2005
THIS ISSUE
SPONSORED BY:

T.L. Ashford
WorksRight Software
Guild Companies

Table of Contents

  • Special Files Can Do It All
  • Admin Alert: The Joys and Pains of Automatically Disabling User Profiles

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Bob Code Assistant Gets Better Understanding Of IBM i Applications
  • IBM i In The Cloud And The Case For Reversing Replication
  • Guru: From Hiking Boots To Long-Term Memory
  • Inside IBM’s New PowerHA Cloud Offering, Full System Manager
  • IBM i PTF Guide, Volume 28, Number 39
  • Power Systems Turns In Another Great Quarter
  • Big Blue Is Right On Schedule With Fall 2026 IBM i Tech Refreshes
  • Guru: Environment Variables – Global Variables Wearing Hiking Boots
  • A New IBM i Entity Takes Shape: Power By Fortra
  • IBM i PTF Guide, Volume 28, Number 38

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle