These examples show how to enroll either a group profile or a user profile in NDS tree XYZ.
Group Profile:
To enroll group profile FINANCE and all of its group members in context O=MAIN in NDS tree XYZ, enter:
CHGNWSUSRA USRPRF(FINANCE) PRFTYPE(*GROUP) PRPGRPMBR(*ALL) NDSTREELST((XYZ 'O=MAIN' PUBSRV1 NWLOGIN))
The FINANCE group object and user objects corresponding to the iSeries group members are created in the NDS tree. From now on, users added to or removed from iSeries FINANCE group profile are added or removed from NDS tree XYZ.
User Profile:
To enroll user profile MIKE in context MAIN.PERSONNEL in NDS tree XYZ, enter:
CHGNWSUSRA USRPRF(MIKE) PRFTYPE(*USER) NDSTREELST((XYZ '.PERSONNEL.MAIN' PUBSRV1 NWLOGIN))
The MIKE user object is created in NDS tree XYZ and will use NWLOGIN as his login script.