Cloning a userid is a very tricky proposition. For one thing, what does 'clone' 
mean to the requestor? If the userids have to be functionally 
identical/interchangeable, a great many paths and a cross tracks have to be 
explored. We don't have a program product to do this either, so it's a hit or 
miss exercise that involves a lot of tweaking when divergences are discovered. 
As Joel says, preference for groups over individual permissions is highly 
desirable, but that may be like remodeling the barn after the horse has 
escaped. Again. 

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-543-6132 Office ⇐=== NEW
robin...@sce.com

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Joel C. Ewing
Sent: Friday, January 17, 2020 1:19 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: (External):Re: Rexx or similar to clone a RACF user?

Unless things have changed, the problem is that RACF permissions granted 
directly to a user to a dataset profile or other resource profile are stored as 
part of that resource profile, not as part of a user profile.   While user 
attributes and group connections to a user are easy to clone just by looking at 
or parsing a display of the to-be-cloned user profile,  unless your 
installation only grants permissions via groups that are then connected to 
users, in the worst case you are forced to examine ALL resource profiles to see 
which ones had permissions for the to-be-cloned user profile and grant similar 
permits to the new user profile.

While it could be done, It was judged impractical to examine all 
resource-to-user permissions from the actual RACF database; so we used a 
standard RACF utility to dump the RACF database in a format that could then be 
uploaded into DB2 tables every night.   The DB2 tables could be efficiently 
queried to find what resource permits were granted to a specific user and 
needed to be cloned, and we just cloned from userids that we knew hadn't been 
changed since the last RACF DB2 table build. We did use REXX code to do the 
cloning, but it used a combination of RACF commands and DB2 queries to 
determine what needed to be done. Our Rexx code was not completely generic, but 
was customized for our installation's RACF standards and conventions, which 
meant that some classes of resource profiles were only granted to group 
profiles and could be safely ignored when cloning a user as they would be 
covered by replicating the group connects for the user.
     Joel C Ewing

On 1/17/20 12:25 PM, Charles Mills wrote:
> X-posted RACF-L and IBM-MAIN.
>
>   
>
> A Google search reveals that the question "how do I clone a user in RACF?"
> has been asked before and the answer is basically "buy Vanguard, 
> Beta88 or zSecure." People also mentioned "you might write a Rexx script to 
> do this."
>
>   
>
> Not having one of those proprietary products I searched the CBT tape 
> to see if such a Rexx script were to be found there, without success.
>
>   
>
> So my question is: does anyone know of a CBT or similar tool to clone 
> a RACF user, or does anyone have a Rexx script that they might be willing to 
> share?


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to