# urbestack-database-user-list

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-database-user-list [--user CUSTOMER] [--owner CUSTOMER]
urbestack-database-user-list [--owner NAME] [--family RESELLER] [--q TEXT] [--page N] [--per-page N]
```

## Description

Lists the database users managed by UrbeStack, with their grants. Use --user or --owner to select a single customer. If both are given, --owner takes precedence. The list omits phpMyAdmin sign-on users and password hashes. Exports carry the hashes.

With any of --q, --page, --per-page or --family, the command returns the listing used by the administrator's panel. When MariaDB responds, other_hosts lists each user's additional hosts, such as those added by hand for remote access. The total count reflects the filters. The all count covers every database user in the listing before filtering by --q or --owner and respects --family.

--family selects the named reseller and their customers. --q matches part of a database user's name, part of the name of a database they can access, or the owning account's full username. The search treats the text literally and uses its first 200 characters after trimming surrounding whitespace.

With --page or --per-page, the command returns one page. The defaults are page 1 and 25 users per page. --per-page accepts 1 to 1000. Page 0 selects the first page, and a page number past the end selects the last page. With neither option, the command returns all matches.

## Same in the API

- [GET /databases/users](https://urbestack.com/docs/api/get-databases-users.md): List database users and their grants

## Command family: database

- [urbestack-database-add](https://urbestack.com/docs/commands/urbestack-database-add.md): Creates a MariaDB database and records the customer named by --user as its owner.
- [urbestack-database-adopt](https://urbestack.com/docs/commands/urbestack-database-adopt.md): Assigns an existing MariaDB database with no recorded owner to the customer named by --user.
- [urbestack-database-del](https://urbestack.com/docs/commands/urbestack-database-del.md): Drops a database and all its data, and removes its ownership record and grants.
- [urbestack-database-grant-set](https://urbestack.com/docs/commands/urbestack-database-grant-set.md): Sets a database user's privileges on a named database.
- [urbestack-database-install](https://urbestack.com/docs/commands/urbestack-database-install.md): Installs MariaDB 10.11 from the distribution for customer databases.
- [urbestack-database-list](https://urbestack.com/docs/commands/urbestack-database-list.md): Lists databases by their recorded ownership in UrbeStack.
- [urbestack-database-signon](https://urbestack.com/docs/commands/urbestack-database-signon.md): Returns a one-time phpMyAdmin sign-on URL for the account named by --user.
- [urbestack-database-signon-retire](https://urbestack.com/docs/commands/urbestack-database-signon-retire.md): Retires passwords issued to hidden phpMyAdmin database users by replacing them with undisclosed passwords.
- [urbestack-database-user-add](https://urbestack.com/docs/commands/urbestack-database-user-add.md): Creates a database user for a customer.
- [urbestack-database-user-del](https://urbestack.com/docs/commands/urbestack-database-user-del.md): Drops a database user and its grants from UrbeStack and MariaDB, including accounts created by hand for other hosts.
- [urbestack-database-user-set](https://urbestack.com/docs/commands/urbestack-database-user-set.md): Changes a database user's password for every MariaDB host with an account under that name, including hosts added by hand.
