The RACF command LISTDSD is used to list the access of all users and groups to a dataset.
The ACF2 subcommand ACCESS can be used to list access for a dataset or resource.
The ACF2 command ACF subcommand ACCESS can be used to list all accesses for a dataset or resource.
The commands in TSO are:
access dsn(dataset name)
access resource(rsrc.name) type(typ)
The output from the command will show all users that are allowed access and the reason why access was allowed (e.g. rule lines allow access or logonid privileges allow access.)