ambitus / pyzkiln

A set of Python building blocks to help with z/OS automation
Apache License 2.0
7 stars 11 forks source link

Build R_admin ADDUSER interface to pyracf #12

Open jbostian opened 2 years ago

jbostian commented 2 years ago

The R_admin service of of the pyracf API supports several functions. The profile extract (PXTR) has already been implemented and we'd like to build ADDUSER next. The ADDUSER callable service has more than 60 arguments that the caller can provide on a request, and we'd like to create an interface that allows all of these arguments to be passed in easily rather than set individually using setter methods.

We'd like to create a new Adduser class that allows new users to be defined. This class should include an initializer that can be passed the name of a json file containing all of the argument values for the new user. Additionally, we would like a to extend the profile extract class to implement a method that builds an Adduser-appropriate json file for an existing user. This allows a caller to model new user definitions off of existing user profiles. This facilitates the definitions of users with common functional characteristics (e.g. developers, sysadmins, ...).

jbostian commented 2 years ago

The relevant fields for the ADDUSER service can be found in Appendix B of the RACF Callable Services Guide:

SA23-2293-40: https://www-40.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R4sa232293/$file/ichd100_v2r4.pdf