This can be accomplished by 'user level' profile selection from RACF.
The user's session-list can be built from the RACF group names.
Release: 5.4
Component: TPX for Z/OS
TPX has a 'built in' function to assign profiles to users based on RACF groups.
You do NOT need any custom code in the TPXUSNSF exit for this functionality.
This exit is pre-packaged with this facility.
Sample Implementation procedure:
Assume USERA and USERB belong to RACFGRP1 and USERC belongs to RACFGRP2 in RACF.
Setup:
* Dynamic Users Allowed: Y
* Save Dynamic Users: N for full dynamic users or
* Save Dynamic Users: Y for save-dynamic users to allow self-admin
Load profiles at startup: Y
* Security System: RACF (SAF is recommended)
* Profile Selection: USER
If USERA now logs on TPX automatically assigns the RACF group name RACFGRP1 from the RACF ACEE and adds this profile to USERA.
Similarly, TPX assigns USERC to profile RACFGRP2 automatically.