---
title: "Admin Only! Edit the individual user role by user id"
method: PUT
path: "/users/{user_id}"
tags: ["users"]
deprecated: true
---

# Admin Only! Edit the individual user role by user id

`PUT /users/{user_id}`

> **Deprecated.**

## Path parameters

- `user_id` string, required

## Request body

- object
  - `id` string — the user's id
  - `role` 'user' | 'author' | 'admin'

## Response `200`

successfully edited single org

- User — Use same structure for create and read
  - `id` string
  - `username` string — could username be the email? its unique
  - `firstName` string — do we need this?
  - `lastName` string — do we need this?
  - `email` string
  - `org` string — the uid of the org this user might belong to
  - `role` string[] — permissions types for users * "user" - Allows for searching and downloading * "author" - Allows for searching, downloading, uploading, and updating packages

## Other responses

- `401` — Unauthenticated, no token is provided or token is invalid
- `403` — Access is forbidden
- `404` — The specified resource was not found
- `500` — Internal server error

---

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