This article documents the usage of the Cpanel::Postgres::listusers function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::Postgres::listusers
This function will output the names of all PostgreSQL users associated with a domain.
<?cp Postgres::listusers( [tr] [td]%[/td] [/tr] ,user, dblist: [table] : [tr][td]%[/td][/tr]: [/table], db) ?>
This example wil output rows of a table that contain the usernames of all PostgreSQL users associated with a domain as well as rows of a table containing the databases they have access to.
Copyright 2007 cPanel Inc.