ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

ACF2 List Members/Logonids in a Role

book

Article ID: 226493

calendar_today

Updated On:

Products

ACF2 - z/OS

Issue/Introduction

What is the most appropriate way to list all of the users in a particular Role? It appears that the ROLES subcommand only displays the roles that a user is apart of, but not the other way around (list role to see all members).

Environment

Release : 16.0

Component : CA ACF2 for z/OS

Resolution

The easiest way to list all logonids defined in a ROLE would be as follows.

From TSO, ACF:

ACF
SET X(ROL)
LIST rolename

From ACFBATCH:

//ACFBATCH EXEC PGM=ACFBATCH
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET X(ROL)
LIST rolename
/*