---
title: "Grant User Role"
method: POST
path: "/connect/users/{id}/role/{role}"
tags: ["Users"]
---

# Grant User Role

`POST /connect/users/{id}/role/{role}`

Grants an existing user a role. The user will then have permissions that this role provides.

## Path parameters

- `id` string, required
- `role` string, required

## Response `200`

The role was successfully granted to the user

## Other responses

- `400` — The provided input object or parameters are malformed or invalid
- `401` — Request was not properly authenticated
- `405` — User module not configured on server
- `500` — Internal SOC error; review SOC logs

---

[API](https://skmtc.net/security-onion-solutions/apis/security-onion-connect-api.md) · [All operations](https://skmtc.net/security-onion-solutions/apis/security-onion-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/security-onion-solutions/security-onion-connect-api/versions/0576ce393f8d/schema)
