Employee Identity (EIAM)

Add User Part-Time Job / Concurrent Position

Interface

# Permissions

The Identity Management API is authorized at the application dimension. 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

POST https://{your_domain}/api/v2/tenant/users/{user_id}/part-time-job

# 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

Adds part-time job/concurrent position information for the user based on the requested user ID parameter.

# Request Parameters

Parameter Name Chinese Name Required Type Description
user_id User ID Yes String The user ID to be modified
org_code Organization Code Yes String Part-time organization code
position_code Position Code No String Concurrent position
title_code Title Code No String Concurrent title

# Return Example

Success Example:
HTTP/1.1 201 OK
Content-Type: application/json
{
  "job_id": "20201028102749564-9082-DC8CD2722"
}

Error Example:
HTTP/1.1 400 Bad Request
{
  "error_msg": "User does not exist",
  "error_code": "USER.0001"
}
1
2
3
4
5
6
7
8
9
10
11
12
13

# Return Parameters

Parameter Name Chinese Name Type Description
job_id Job 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 Please enable job management in the Enterprise Center first
The job management function is not enabled, please enable this function first
400 ORG.0001 Organization does not exist Please check if the corresponding organization exists
Organization does not exist
400 JOB.POSITION.0001 Position does not exist Please check if the corresponding position exists
Position does not exist
400 JOB.TITLE.0001 Job title does not exist Please check if the corresponding job title exists
Job title does not exist
400 USER.0001 User does not exist Please check if the corresponding user exists
User does not exist
400 USER.0094 The organization in the user's employment information cannot be empty Please fill in the organization in the job information
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 Please fill in the position in the job information
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 Please fill in the job title in the job information
The job title in the user's employment information cannot be empty
400 USER.0097 The position in the user's employment information is not under the selected organization Please check if the position in the job information is under the corresponding organization

Please paste the Markdown content you would like me to translate.