Employee Identity (EIAM)
Adjust User's Organization and Primary Position
Interface
# Permissions
The Identity Management API is authorized at the application level. Before calling the interface, you need to set interface permissions for different applications. For details, please refer to API Permissions.
| Permission Code | Description |
|---|---|
| user_all | Read and write permissions for user management interfaces |
| all | Read and write permissions for all interfaces |
# Request Description
PUT https://{your_domain}/api/v2/tenant/users/{user_id}/jobs/transfer
# Request Headers
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| Authorization | Authorization | Yes | String | Format: Bearer {access_token} |
| Content-Type | Content Type | Yes | String | Fixed value: application/json; charset=utf-8 |
# Request Example
{
"org_code": "10000",
"position_code": "IDaaS_Java_Developer",
"title_code": "Senior_Engineer"
}
1
2
3
4
5
2
3
4
5
Adjust the user's organization and position based on the requested user ID parameter.
# Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| user_id | User ID | Yes | String | The ID of the user to be modified |
| org_code | Organization Code | Yes | String | Code of the primary organization to belong to |
| position_code | Position Code | No | String | Primary position; if this parameter is not passed, it will be cleared |
| title_code | Title Code | No | String | Primary title; if this parameter is not passed, it will be cleared |
# Return Example
Success Example:
HTTP/1.1 200 OK
Content-Type: application/json
{
"user_id": "20201028102749564-9082-DC8CD2722"
}
Error Example:
HTTP/1.1 400 Bad Request
{
"error_msg": "用户不存在",
"error_code": "USER.0001"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# Return Parameters
| Parameter Name | Chinese Name | Type | Description |
|---|---|---|---|
| user_id | User ID | String |
# Error Codes
| Status Code | Error Code | Error Message | Handling Measures |
|---|---|---|---|
| 400 | ENT.CONFIG.0031 | 任职管理功能未开启,请先开启此功能 | 请先在企业中心开启任职管理 |
| The job management function is not enabled, please enable this function first | |||
| 400 | ORG.0001 | 组织不存在 | 请检查对应组织是否存在 |
| Organization does not exist | |||
| 400 | JOB.POSITION.0001 | 职位不存在 | 请检查对应职位是否存在 |
| Position does not exist | |||
| 400 | JOB.TITLE.0001 | 职务不存在 | 请检查对应职务是否存在 |
| Job title does not exist | |||
| 400 | USER.0001 | 用户不存在 | 请检查对应用户是否存在 |
| User does not exist | |||
| 400 | USER.0094 | 用户任职信息中的组织不能为空 | 请填写岗位信息中的组织 |
| The organization in the user's employment information cannot be empty | |||
| 400 | USER.0095 | 用户任职信息中的职位不能为空 | 请填写岗位信息中的职位 |
| The position in the user's employment information cannot be empty | |||
| 400 | USER.0096 | 用户任职信息中的职务不能为空 | 请填写岗位信息中的职务 |
| The job title in the user's employment information cannot be empty | |||
| 400 | USER.0097 | 用户任职信息中的职位不在所选组织下 | 请检查岗位信息中的职职位是否在对对应的组织下 |
I am ready to receive the Markdown content for translation. Please paste the text you would like me to translate into English.
