Directory Managers were creating new VM user ID's that did not confirm to the company standard. The customer needed an automatic method of controlling the naming of new user ID's.
In this example, VMRMAINT will be able to create user ID's with any name. VMXMGR1 is the user ID that is being restricted when creating VM user ID's with specific names. VMXMGR1 can only create new user IDs that begin with 'CLN'.
Note* VMSECURE is used in the example, but VMDIRECT is implied unless otherwise stated.
You will need to:
Sample NEWUSER EXEC:
* * * Top of File * * * /* test newuser userexit */ arg argstring trace all say 'Arguments to NEWUSER userexit are:' argstring /*say 'This is the one with RC=4'*/ parse var argstring user user2 acct newmgr command group if (substr(strip(user2),1,3)) <> 'CLN' then exit 4 push 'VMXMGR1' exit 0 * * * End of File * * *
Here is what VMSMGR1 gets when it tries to add user LALALA VMXMAN0363E User 'LALALA' rejected by installation exit routine.
VMXMAN0099I 'MANAGE' command canceled.
VMXMAN0365I User not defined.