How to check which all users have access to which all databases in the system?
For example: In my system there are databases like abc, def, xyz.. and there are database level users user1, user2, user3 .., now i want to check whether user1 can access which all databases.
Im using Redshift database.