---
title: "User - Update User Group Mapping"
method: PUT
path: "/setup/user/{userId}/userGroupMapping"
tags: ["Organizations"]
---

# User - Update User Group Mapping

`PUT /setup/user/{userId}/userGroupMapping`

Update the mapping of a given user to user groups

## Parameters

- `#/paths/~1setup~1user~1%7BuserId%7D/get/parameters/0` — unresolved $ref

## Request body

- object
  - `userGroupIds` string[] — A list of the user groups to register the given user to (should be existing user groups only)

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/2e5445f30576/schema)
