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