/databases/users
0.1.0Unchanged since publicationList database users and their grants
databasesreadallAdministrators can list all managed database users. Resellers can list their own database users and their customers' database users. Customers can list their own. The response excludes phpMyAdmin sign-on users and password hashes.
The basic listing returns users and supports the user filter for administrators and resellers. For administrators, q, page, or per_page selects the detailed listing. Using owner alone filters the basic listing and returns more set to false. For resellers and customers, supplying any of q, owner, page, or per_page selects the detailed listing. When MariaDB responds, the detailed listing includes other_hosts, the additional hosts under which each database user has a MariaDB account.
Supply page or per_page to paginate. Omit both to return all matches. The API ignores q values longer than 200 characters or containing ASCII control characters. It ignores page and per_page values outside their accepted decimal formats.
As a command
Run as root on the serverParameters
userquery ·Usernameqquery ·string, up to 200 charactersownerquery ·Usernamepagequery ·integer, 1 or moreper_pagequery ·integer, 1 to 1000Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/databases/users?user=alice&q=text&owner=alice&page=1&per_page=1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"all": {
"total": 1
},
"more": true,
"page": 1,
"pages": 1,
"per_page": 1,
"total": 1,
"users": [
{
"created_at": "2026-09-09T10:15:00Z",
"grants": [
{
"database": "alice_shop",
"level": "full",
"privileges": "text"
}
],
"id": 1,
"name": "alice",
"other_hosts": [
"text"
],
"updated_at": "text",
"user": "alice",
"user_id": 2
}
]
}Errors
5 errors, each a status and a sentence400A <what> name is 1 to 64 letters, digits or underscores400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication required404User '<family>' not foundurbestack.com/docs/api/get-databases-users/