---
title: "Assign a database to this user with privileges"
method: POST
path: "/api/client/database-users/{id}/assign-database"
tags: ["Client - Database Users"]
---

# Assign a database to this user with privileges

`POST /api/client/database-users/{id}/assign-database`

## Path parameters

- `id` integer, required

## Request body

- object
  - `database_id` integer, required
  - `privileges` string[]

## Response `200`

Privileges updated

## Other responses

- `404` — User or database not found
- `422` — Invalid privileges or failure

---

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