Qué vas a conseguir
Dar de alta, mantener y dar de baja usuarios en el IBM i (el AS400 de siempre) donde corre el ERP: pedidos a almacén, stock, precios y a veces la contabilidad. En muchas cadenas de tiendas sigue siendo el corazón del negocio y lo usan a la vez la oficina central, los jefes de área y el encargado desde el PC de trastienda. El soporte de primer nivel recibe sobre todo dos cosas: altas y "no puedo entrar".
Antes de empezar
- Un perfil con autorización especial
*SECADM(y autoridad sobre los perfiles que vas a tocar) para crear y cambiar usuarios. No uses QSECOFR para el día a día. - La convención de nombres: los perfiles tienen como máximo 10 caracteres, por ejemplo
LPRADO. - Los perfiles de grupo por rol que ha definido el equipo de aplicaciones (por ejemplo
GRPTIENDA,GRPCOMPRAS,GRPADMIN). - IBM i Access Client Solutions (ACS) instalado en los PC que lo usan, con la configuración del sistema ya creada.
1. Lo que define un perfil de usuario
| Parámetro | Qué controla | Valor típico para tienda |
|---|---|---|
USRCLS | Clase de usuario: *USER, *SYSOPR, *PGMR, *SECADM, *SECOFR | *USER |
SPCAUT | Autorizaciones especiales (*ALLOBJ, *SECADM, *JOBCTL, *SPLCTL, *SAVSYS, *SERVICE, *AUDIT, *IOSYSCFG) | *NONE |
GRPPRF | Perfil de grupo del que hereda autoridades | GRPTIENDA |
INLPGM | Programa inicial que se ejecuta al entrar | El menú del ERP |
INLMNU | Menú inicial | *SIGNOFF (al salir del programa, sale de la sesión) |
LMTCPB | Limitar capacidades: no puede ejecutar mandatos en la línea de mandatos | *YES |
PWDEXP | Contraseña caducada: obliga a cambiarla en el primer inicio | *YES |
- Un usuario de tienda nunca necesita autorizaciones especiales. Si alguien pide
*ALLOBJ"para que le funcione", el problema es la autoridad de un objeto, y se resuelve en el grupo. INLPGM+INLMNU(*SIGNOFF)+LMTCPB(*YES)es la combinación que deja al usuario dentro del menú del ERP, sin línea de mandatos.
2. Crear el perfil
CRTUSRPRF USRPRF(LPRADO) PASSWORD(********) PWDEXP(*YES) STATUS(*ENABLED) USRCLS(*USER) INLPGM(ERPLIB/MNUTIENDA) INLMNU(*SIGNOFF) LMTCPB(*YES) TEXT('Laura Prado - Encargada Tienda 042') SPCAUT(*NONE) GRPPRF(GRPTIENDA) OWNER(*GRPPRF)Perfil de usuario LPRADO creado.DSPUSRPRF USRPRF(LPRADO) Perfil de usuario . . . . . . . . . . : LPRADO Estado . . . . . . . . . . . . . . . . : *ENABLED Clase de usuario . . . . . . . . . . . : *USER Autorización especial . . . . . . . . : *NONE Perfil de grupo . . . . . . . . . . . : GRPTIENDA Programa inicial . . . . . . . . . . . : MNUTIENDA Biblioteca . . . . . . . . . . . . . : ERPLIB Menú inicial . . . . . . . . . . . . . : *SIGNOFF Limitar posibilidades . . . . . . . . : *YES- Si el ERP necesita más (almacén por defecto, tienda asignada), suele ir en una tabla del propio ERP, no en el perfil. Pregunta al equipo de aplicaciones qué falta tras el
CRTUSRPRF. - Para cambiar algo después se usa
CHGUSRPRFcon los mismos parámetros, yWRKUSRPRF USRPRF(L*)para ver y trabajar con varios perfiles a la vez. - Para un segundo grupo,
SUPGRPPRFadmite hasta 15 grupos suplementarios. Úsalo poco: cada grupo extra es una autoridad más que revisar.
3. Acceso con Access Client Solutions
- En ACS, la configuración del sistema apunta al nombre del IBM i (por ejemplo
srv-ibmi01) y usa TLS (puerto 992) si el sistema lo tiene configurado. - El usuario abre Emulador 5250, entra con su perfil y la contraseña inicial, y el sistema le pide la nueva.
- Si se configura un nombre de dispositivo fijo por puesto (por ejemplo
T042PC01), es más fácil saber desde qué tienda se conecta cada sesión. - Desde casa o de viaje, el emulador funciona igual a través de la VPN.
4. Contraseñas y perfiles inhabilitados
El valor del sistema QMAXSIGN fija cuántos intentos de inicio fallidos se permiten (3 por defecto) y QMAXSGNACN qué pasa al llegar al límite: inhabilitar el dispositivo, el perfil o ambos. Cuando se inhabilita el perfil, su estado pasa a *DISABLED y queda un mensaje CPF1393 en la cola QSYSMSG (si existe) y en el histórico.
Para restablecer la contraseña y habilitar el perfil a la vez:
CHGUSRPRF USRPRF(LPRADO) PASSWORD(********) PWDEXP(*YES) STATUS(*ENABLED)
Antes de restablecer, confirma la identidad: llamada al móvil que consta en RR. HH. o validación del jefe de área. La tienda es un sitio donde cualquiera puede llamar diciendo ser el encargado.
5. El ticket: "el perfil está inhabilitado / CPF1394 al iniciar sesión"
Lunes, 9:10. El encargado de la tienda 042 llama: el emulador le dice "El perfil de usuario LPRADO no puede iniciar la sesión" (mensaje CPF1394).
DSPUSRPRF USRPRF(LPRADO) Perfil de usuario . . . . . . . . . . : LPRADO Inicio de sesión anterior . . . . . . : 26/10/26 20:41:07 Intentos de inicio no válidos . . . . : 3 Estado . . . . . . . . . . . . . . . . : *DISABLED Fecha de último cambio de contraseña . : 01/09/26DSPSYSVAL SYSVAL(QMAXSIGN) Máximo de intentos de inicio de sesión . : 3- **Estado
*DISABLEDcon 3 intentos no válidos**: alguien falló la contraseña tres veces. Puede ser él mismo, un compañero en el PC de trastienda o una contraseña guardada en un script de ACS antiguo. - Pregunta antes de habilitar: ¿cambió la contraseña hace poco?, ¿la comparte con alguien? Si la caducidad (QPWDEXPITV) coincide con el fin de semana, es lo de siempre.
- Restablece y habilita con el
CHGUSRPRFdel apartado anterior, conPWDEXP(*YES)para que la cambie él. - **Si el perfil está
*ENABLEDy aun así no entra: puede estar inhabilitado el dispositivo** (según QMAXSGNACN).WRKCFGSTS CFGTYPE(*DEV) CFGD(T042PC01)muestra su estado yVRYCFG CFGOBJ(T042PC01) CFGTYPE(*DEV) STATUS(*ON)lo vuelve a activar. - Si se repite cada semana con el mismo usuario, revisa el histórico (
DSPLOG) para ver desde qué dispositivo llegan los intentos fallidos: suele ser un PC con la sesión de otra persona.
6. Bajas y revisión mensual
En la baja, primero se inhabilita, y se borra más tarde, cuando el equipo de aplicaciones confirme que no posee objetos ni trabajos planificados:
- El día de la baja:
CHGUSRPRF USRPRF(MGIL) STATUS(*DISABLED). WRKOBJOWN USRPRF(MGIL)para ver qué objetos posee.- Pasado el plazo acordado (30 días, por ejemplo):
DLTUSRPRF USRPRF(MGIL) OWNOBJOPT(*CHGOWN GRPTIENDA)para transferir esos objetos en lugar de borrarlos.
Cada mes:
ANZPRFACT(o un informe equivalente) para inhabilitar perfiles sin actividad en los últimos 60 o 90 días.- Perfiles con autorizaciones especiales: deben ser pocos y nominales, ninguno de tienda.
- Cruce con las bajas de RR. HH.: un perfil activo de alguien que ya no está es un hallazgo de auditoría.
Siguientes pasos
- La guía de alta de usuario sitúa el perfil del ERP dentro de la incorporación completa.
- Active Directory cubre la cuenta corporativa que debe existir antes del perfil de IBM i.
- Cisco AnyConnect (VPN) explica el acceso al emulador desde fuera de la oficina.
- ISO 27001/NIS2/RGPD en IT ayuda a justificar la revisión periódica de accesos.
¿Falta algo o en tu entorno es distinto? Escríbeme y lo corrijo.
What you'll get
Create, maintain and remove users on the IBM i (the classic AS400) where the ERP runs: warehouse orders, stock, prices and sometimes accounting. In many store chains it is still the heart of the business, used at the same time by head office, area managers and the store manager from the back-office PC. First-line support gets mostly two things: new users and "I can't get in".
Before you start
- A profile with the
*SECADMspecial authority (and authority over the profiles you will change) to create and change users. Don't use QSECOFR for daily work. - The naming convention: profiles are 10 characters at most, for example
LPRADO. - The group profiles per role defined by the applications team (for example
GRPTIENDA,GRPCOMPRAS,GRPADMIN). - IBM i Access Client Solutions (ACS) installed on the PCs that use it, with the system configuration already created.
1. What a user profile defines
| Parameter | What it controls | Typical value for a store |
|---|---|---|
USRCLS | User class: *USER, *SYSOPR, *PGMR, *SECADM, *SECOFR | *USER |
SPCAUT | Special authorities (*ALLOBJ, *SECADM, *JOBCTL, *SPLCTL, *SAVSYS, *SERVICE, *AUDIT, *IOSYSCFG) | *NONE |
GRPPRF | Group profile it inherits authorities from | GRPTIENDA |
INLPGM | Initial program run at sign-on | The ERP menu |
INLMNU | Initial menu | *SIGNOFF (leaving the program ends the session) |
LMTCPB | Limit capabilities: can't run commands from the command line | *YES |
PWDEXP | Password expired: forces a change at first sign-on | *YES |
- A store user never needs special authorities. If someone asks for
*ALLOBJ"so it works", the problem is an object's authority, and it is fixed in the group. INLPGM+INLMNU(*SIGNOFF)+LMTCPB(*YES)is the combination that keeps the user inside the ERP menu, with no command line.
2. Create the profile
CRTUSRPRF USRPRF(LPRADO) PASSWORD(********) PWDEXP(*YES) STATUS(*ENABLED) USRCLS(*USER) INLPGM(ERPLIB/MNUTIENDA) INLMNU(*SIGNOFF) LMTCPB(*YES) TEXT('Laura Prado - Manager Store 042') SPCAUT(*NONE) GRPPRF(GRPTIENDA) OWNER(*GRPPRF)User profile LPRADO created.DSPUSRPRF USRPRF(LPRADO) User profile . . . . . . . . . . . . : LPRADO Status . . . . . . . . . . . . . . . : *ENABLED User class . . . . . . . . . . . . . : *USER Special authority . . . . . . . . . : *NONE Group profile . . . . . . . . . . . : GRPTIENDA Initial program . . . . . . . . . . : MNUTIENDA Library . . . . . . . . . . . . . : ERPLIB Initial menu . . . . . . . . . . . . : *SIGNOFF Limit capabilities . . . . . . . . . : *YES- If the ERP needs more (default warehouse, assigned store), it usually lives in a table of the ERP itself, not in the profile. Ask the applications team what is missing after the
CRTUSRPRF. - To change something later, use
CHGUSRPRFwith the same parameters, andWRKUSRPRF USRPRF(L*)to view and work with several profiles at once. - For a second group,
SUPGRPPRFaccepts up to 15 supplemental groups. Use it sparingly: each extra group is one more authority to review.
3. Access with Access Client Solutions
- In ACS, the system configuration points to the IBM i name (for example
srv-ibmi01) and uses TLS (port 992) if the system has it configured. - The user opens the 5250 Emulator, signs on with their profile and the initial password, and the system asks for a new one.
- If you set a fixed device name per workstation (for example
T042PC01), it's easier to tell which store each session comes from. - From home or on the road, the emulator works the same way through the VPN.
4. Passwords and disabled profiles
The QMAXSIGN system value sets how many failed sign-on attempts are allowed (3 by default) and QMAXSGNACN what happens at the limit: disable the device, the profile or both. When the profile is disabled, its status becomes *DISABLED and a CPF1393 message is left in the QSYSMSG queue (if it exists) and in the history log.
To reset the password and enable the profile in one go:
CHGUSRPRF USRPRF(LPRADO) PASSWORD(********) PWDEXP(*YES) STATUS(*ENABLED)
Before resetting, confirm identity: a call to the mobile number HR holds, or validation by the area manager. A store is a place where anyone can phone in claiming to be the manager.
5. The ticket: "user profile is disabled / CPF1394 at sign-on"
Monday, 9:10. The manager of store 042 calls: the emulator says "User profile LPRADO cannot sign on" (message CPF1394).
DSPUSRPRF USRPRF(LPRADO) User profile . . . . . . . . . . . . : LPRADO Previous sign-on . . . . . . . . . . : 26/10/26 20:41:07 Sign-on attempts not valid . . . . . : 3 Status . . . . . . . . . . . . . . . : *DISABLED Date password last changed . . . . . : 01/09/26DSPSYSVAL SYSVAL(QMAXSIGN) Maximum sign-on attempts allowed . . : 3- **Status
*DISABLEDwith 3 invalid attempts**: someone got the password wrong three times. It may be them, a colleague on the back-office PC or a password saved in an old ACS script. - Ask before enabling: did they change the password recently? Do they share it with anyone? If the expiry (QPWDEXPITV) fell over the weekend, it's the usual story.
- Reset and enable with the
CHGUSRPRFfrom the previous section, withPWDEXP(*YES)so they change it themselves. - **If the profile is
*ENABLEDand they still can't get in: the device** may be disabled (depending on QMAXSGNACN).WRKCFGSTS CFGTYPE(*DEV) CFGD(T042PC01)shows its status andVRYCFG CFGOBJ(T042PC01) CFGTYPE(*DEV) STATUS(*ON)varies it back on. - If it happens every week with the same user, check the history log (
DSPLOG) to see which device the failed attempts come from: it's usually a PC with someone else's session.
6. Leavers and monthly review
For a leaver, first disable, and delete later, once the applications team confirms the profile owns no objects or scheduled jobs:
- On the leaving date:
CHGUSRPRF USRPRF(MGIL) STATUS(*DISABLED). WRKOBJOWN USRPRF(MGIL)to see which objects it owns.- After the agreed period (30 days, for example):
DLTUSRPRF USRPRF(MGIL) OWNOBJOPT(*CHGOWN GRPTIENDA)to transfer those objects instead of deleting them.
Each month:
ANZPRFACT(or an equivalent report) to disable profiles with no activity in the last 60 or 90 days.- Profiles with special authorities: they should be few and named, none of them in stores.
- A cross-check against HR leavers: an active profile for someone who has left is an audit finding.
Next steps
- The new starter guide places the ERP profile within the complete onboarding.
- Active Directory covers the corporate account that should exist before the IBM i profile.
- Cisco AnyConnect (VPN) explains access to the emulator from outside the office.
- ISO 27001/NIS2/RGPD in IT helps justify the periodic access review.
Is something missing, or different in your environment? Get in touch and I'll fix it.
Tech Career Lab · newsletter
¿Te ha servido? Cada dos semanas envío una idea práctica para perfiles IT: LinkedIn, proyectos, networking y procesos de selección.Found this useful? Every two weeks I send one practical idea for IT professionals: LinkedIn, projects, networking and hiring processes.
Apúntate y llévate las 33 ideasSign up and get the 33 ideas →