How To
Summary
Creating a user profile that has *SECADM user special authority but without *ALLOBJ that will work to manage the user profiles in the system.
Objective
Steps
cl: DSPOBJD OBJ(QSYS/*ALL) OBJTYPE(*USRPRF) OUTPUT(*OUTFILE) OUTFILE(QTEMP/USRP);
SELECT 'cl: GRTOBJAUT OBJ(' || TRIM(ODLBNM) || '/' || TRIM(ODOBNM) || ')' ||
' OBJTYPE(*USRPRF) USER(SECADMPRF) AUT(*USE) REPLACE( *NO);'
FROM qtemp/usrp
where ODOBNM not like 'Q%'



Review the profiles that will add the user authority to and once confirm run the query.
Step 4: Using IBM i ACS Run SQL Script (RSS) again to create a CL to GRTOBJAUT *OBJEXIST and *OBJMGT to all user profile to the security administrator profile.
With *OBJEXIST and *OBJMGT will allow security administrator to perform CHGUSRPRF and DLTUSRPRF.
cl: DSPOBJD OBJ(QSYS/*ALL) OBJTYPE(*USRPRF) OUTPUT(*OUTFILE) OUTFILE(QTEMP/USRP);
SELECT 'cl: GRTOBJAUT OBJ(' || TRIM(ODLBNM) || '/' || TRIM(ODOBNM) || ')' ||
' OBJTYPE(*USRPRF) USER(SECADMPRF) AUT(*OBJEXIST *OBJMGT) REPLACE( *NO);'
FROM qtemp/usrp
Step 5: From the result panel, do a right-click and click "save results" (same as step 2)
Step 6: In ACS Run SQL Script open this file as PC file selecting the files of type to all files and select the one you saved.
Review the profiles that will add the user authority to and once confirm run the query.
Document Location
Worldwide
Was this topic helpful?
Document Information
More support for:
IBM i
Component:
Job and Work Management->Authority
Software version:
All Versions
Operating system(s):
IBM i
Document number:
7123775
Modified date:
27 February 2024
UID
ibm17123775