---
title: "Gets if there is an admin user"
method: GET
path: "/api/server/admin-user"
tags: ["Server Configuration"]
---

# Gets if there is an admin user

`GET /api/server/admin-user`

## Response `200`

Gets if there is an admin user

- ServerAdminUser
  - `hasUser` boolean

## Other responses

- `501` — Contao console does not support the necessary contao:user:list and/or contao:user:create commands/options.
- `502` — If the command line does not work as expected.
- `503` — If the PHP command line binary cannot be found.

## Changes

- **2025-03-06** `4dc3bf84edf7` — 2 info
  - the endpoint scheme security `CookieAuthentication` was added to the API
  - the endpoint scheme security `TokenAuthentication` was added to the API
- **2022-07-26** `b5e0c2bf578d` — 1 info
  - endpoint added
- **2020-07-23** `42c41034504b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/server/admin-user/get.md)

---

[API](https://skmtc.dev/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.dev/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/4dc3bf84edf7/schema)
