Is there a way to create a new user 'LIKE' an existing?
search cancel

Is there a way to create a new user 'LIKE' an existing?

book

Article ID: 216703

calendar_today

Updated On:

Products

VM:Secure for z/VM

Issue/Introduction

Is there a way to create a new user 'LIKE' an existing? So the new user can have the same INCLUDE/ACIGROUP/ETC as an existing user?

Preferably this should be a 'line mode' command - not an inter-active one.

 

Environment

Release : 3.2

Component : CA VM:Secure for z/VM

Resolution

There are more more than one way to accomplish this - 

 

  •  You can use VMSECURE EDIT.

 

  • You can create an EXEC to push the 'FILE' before the edit .. ie:

/* */

PUSH 'FILE'

'VMSECURE EDIT EVONNE YVONNE'

EXIT RC

         Note - the push of the 'FILE' to file the new user file avoids ending up in VMSECURE EDIT

 

  • Another method would be to use DUPENTRY .. but that will duplicate the origin user's mdisks also.

 

You can also create a skeleton file that can be used as a template for these 'types' of users that can pull in most things these user's need and use ADDENTRY to create the user.

But if you really wants a userid with all the mdisks etc of the on he is trying to duplicate then dupentry is what you should use otherwise create a skeleton to be used with ADDENTRY

Additional Information

Additional information on VMSECURE EDIT can be found here - 

https://techdocs.broadcom.com/us/en/ca-mainframe-software/traditional-management/ca-vm-secure-for-z-vm-with-security/3-2/administrators/managing-directory-entries-as-an-administrator/creating-directory-entries-as-an-administrator/creating-a-user-id-based-on-another-user-id.html