---
title: "add user to group."
method: POST
path: "/cc/v1/groups/users"
tags: ["Groups"]
---

# add user to group.

`POST /cc/v1/groups/users`

Optional extended description in Markdown.

## Request body

- UserGroup
  - `id` integer — the id of UserGroup
  - `userId` integer — the UserGroup
  - `RoleId` integer — the roleId of UserGroup
  - `GroupId` integer — the GroupId of UserGroup
  - `remarks` string — the remarks UserGroup
  - `enableFlag` integer — Whether the data is valid

## Response `200`

Detailed group and group information.

- UserGroup
  - `id` integer — the id of UserGroup
  - `userId` integer — the UserGroup
  - `RoleId` integer — the roleId of UserGroup
  - `GroupId` integer — the GroupId of UserGroup
  - `remarks` string — the remarks UserGroup
  - `enableFlag` integer — Whether the data is valid

## Other responses

- `401` — Unauthorized
- `404` — url to get allGroups not found.

---

[API](https://skmtc.net/webankfintech/apis/mlss-cc-api.md) · [All operations](https://skmtc.net/webankfintech/apis/mlss-cc-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/webankfintech/mlss-cc-api/versions/615a549c16f7/schema)
