---
title: "添加用户记录"
method: POST
path: "/user/add"
tags: ["用户管理"]
---

# 添加用户记录

`POST /user/add`

添加用户记录

## Request body

- RequestUserAddReq
  - `avatar` string
  - `departmentId` integer[], required
  - `departments` string
  - `givenName` string
  - `introduction` string
  - `jobNumber` string, required
  - `mail` string, required
  - `mobile` string, required
  - `nickname` string, required
  - `password` string
  - `position` string
  - `postalAddress` string
  - `roleIds` integer[], required
  - `source` string
  - `status` 1 | 2
  - `username` string, required

## Response `200`

OK

- ResponseResponseBody
  - `code` integer
  - `data` unknown
  - `msg` string

---

[API](https://skmtc.dev/opsre/apis/go-ldap-admin.md) · [All operations](https://skmtc.dev/opsre/apis/go-ldap-admin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opsre/go-ldap-admin/revisions/b7dd139f5de2/schema)
