---
title: "Changes which group a user is in."
method: PUT
path: "/users/{userId}"
tags: ["Users"]
---

# Changes which group a user is in.

`PUT /users/{userId}`

## Path parameters

- `userId` integer, required

## Request body

- EditUserDto
  - `groupName` string, required

## Response `204`

The user was successfully moved to the group.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

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