Carsten Flensburg strikes again! This issue highlights the latest of Carsten’s GREAT utilities. This one again deals with OS/400 special authorities, but from a bit of a different angle.
RTVUSRSPCA (Retrieve User Special Authorities) is a command that is similar to the IBM-supplied command RTVUSRPRF (Retrieve User Profile), but RTVUSRSPCA deals exclusively with special authorities.
The main problem that is addressed by the utility presented here is that IBM’s RTVUSRPRF command does not give a true picture of the special authorities inherent in a user profile. The special authorities held by a user can only be determined by extracting that information from the User profile, the primary group profile, and any associated supplementary group profiles. The combination of the special authorities found in these three sources actually determines the special authorities held by a user. The RTVUSRPRF command only tells you the special authorities held within the User Profile itself and does not consider the primary group or supplementary groups.
The RTVUSRSPCA command presented here lets you select the levels of special authorities you are interested in. You can retrieve only those authorities held in the User Profile (just like RTVUSRPRF), or you can retrieve special authorities only from the primary group, or those found in supplementary groups, or a combination of all three sources: User, Group, Supplementary groups.
Download the save file containing the source code.