---
id: "en/api-post-nd-api-enterprise-add-ent-mem"
title: "Add company members"
language: "en"
description: "POST /api/add_ent_mem.do: Add enterprise member interface description, including path, method, parameters and return information."
canonical_url: "https://www.babel.cc/public/babelwiki/en/api-post-nd-api-enterprise-add-ent-mem.html"
markdown_url: "https://www.babel.cc/public/babelwiki/ai/en/api-post-nd-api-enterprise-add-ent-mem.md"
alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-post-nd-api-enterprise-add-ent-mem.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-post-nd-api-enterprise-add-ent-mem.md"}
reading_note: "文档记录不等于当前部署能力；以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明，勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts."
---

# Add company members

| Properties | Values |
| --- | --- |
| HTTP method | `POST` |
| Interface path | `/api/add_ent_mem.do` |
| Category | Enterprise API |

## Interface description

Interface path: `/api/add_ent_mem.do`

HTTP method: `POST`


**HTTP method:** `POST`

#### POST request body parameters

| Parameter | Type | Description (source requirements, defaults and scope) |
| --- | --- | --- |
| `email` | `string` | Email mailbox |
| `password` | `string` | password |
| `enterprise_role` | `number` | enterprise member role, optional |
| `department_ids[]` | `string[]` | The user's department, optional |
| `department_roles[]` | `string[]` | Roles in the department, optional |
| `sex` | `number` | 0 - not set 1 - male 2 - female |
| `name` | `string` | username |
| `phone` | `string` | mobile phone number, optional |
| `babelId` | `string` | employee ID, optional |
| `spacelimit` | `number` | personal space limit, unit GB, 0 means no limit |
| `can_ownfile` | `number` | whether the user can have personal files, -1 - use the overall enterprise settings, 0 - no personal files, 1 - have personal files |
| `remarks` | `string` | user description, optional |
| `join_time` | `number` | The time when the user joined the enterprise, Unix time, unit  seconds |
| `password_is_md5` | `number` | Whether the incoming password requires md5 encryption, 0 non-md5 password, 1 md5 encrypted password |

#### Response {#response-status}

Business results for adding enterprise members:

Success:

```json
{"code":0,"success":true}
```

Failure:

```json
{"code":2,"success":false}
```

## Call instructions

- Before calling, you need to complete [Get token](https://www.babel.cc/public/babelwiki/en/api-post-api-token-do.html) or the corresponding login-free authentication, and carry `Authorization: Bearer <access_token>` in the request header.
- If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail.
- Category: Enterprise API.
