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 |
Scroll horizontally to view all columns
Response
Business results for adding enterprise members:
Success:
{"code":0,"success":true}
Failure:
{"code":2,"success":false}
Call instructions
- Before calling, you need to complete Get token 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.