---
title: "Approve a user access request."
method: POST
path: "/api/admin/user-access-requests/{id}/approve"
tags: ["Users"]
---

# Approve a user access request.

`POST /api/admin/user-access-requests/{id}/approve`

**Enterprise feature**

Approves a pending user access request, creating a new user with the specified role.

## Path parameters

- `id` string, required

## Request body

- ApproveUserAccessRequestSchema — The data required to approve a user access request.
  - `rootRole` integer, required — The ID of the root role to assign to the new user.

## Response `200`

This response has no body.

## Other responses

- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `404` — The requested resource was not found.

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/versions/b2c3116e633e/schema)
