Cpanel::Postgres::listusers

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.


SYNOPSIS

Cpanel::Postgres::listusers


DESCRIPTION

This function will output the names of all PostgreSQL users associated with a domain.


VARIABLES

INPUT

NONE

OUTPUT

dblist (string)
Array of databases the user has access privileges for.

user (string)
name of the PostgreSQL user.
db (string)
Database the user has access privileges for. Format accountuser_dbname


EXAMPLES

<?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

Copyright 2007 cPanel Inc.