forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
3.1 KiB
3.1 KiB
How Do I View All Database Users and Their Permissions?
- To view the user list, query the PG_USER view.
1 2
SELECT * FROM pg_user;
- To view user attributes, query the PG_AUTHID system catalog.
1 2
SELECT * FROM pg_authid;
- Query the permissions of user joe.
1
SELECT * FROM pg_authid where rolname = 'joe';
Parent topic: Account, Password, and Permissions