Employee Identity (EIAM)
Add Organization
Identity Synchronization
# Request Description
| Parameter | Reference |
|---|---|
| Request URL | https://{app_domain}/callback |
| Request Method | POST |
| Request Header | Authorization: Bearer {access_token} |
# Request Parameters
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| code | No | String(100) | Organization code, globally unique. Event callback prioritizes eventType (event type), then id (for add events, id is empty), and finally the code attribute. |
| name | Yes | String(40) | Organization name. Names must be unique within the same hierarchy level. |
| parentId | No | String(50) | Parent organization ID |
| disabled | Yes | Boolean | Whether disabled. true indicates disabled state, false indicates enabled (not disabled). |
| leader | No | String | Organization leader |
| extAttr (Custom Extended Attributes) | No | - Integer - Boolean - String - Array | ① Extended Attribute: Parameter name is defined by the property name defined in IDaaS Enterprise Center, Application -> Object Model -> Application Organization Model -> Properties; enterprises can customize extended attribute names and types. ② Extended Attribute Types: Currently only supports: Number, Text, Toggle, Multi-value Text |
# Response Parameters
| Parameter Name | Type | Description |
|---|---|---|
| id | String(50) | The organization ID of the enterprise application. |
# Request Example
- Request example with message signing and encryption enabled
{
"nonce": "AmgjjEAJbrMzWmUw",
"timestamp": 15093849585,
"eventType": "CREATE_ ORGANIZATION",
"data": "6lu6gxrHydJIXEWxQhUa3UqsWsDZ5LTAo/xU3zhjq9H3syCuFYDYKg==",
"signature": "K08yDiTEc094KoccOY+VYLQFxxQ="
}
1
2
3
4
5
6
7
2
3
4
5
6
7
- JSON string format of the decrypted request body data
{
"code": "1000003",
"name": "Wuhan Branch",
"parentId": "5b183439-36a8-4d08-94ba-61b3c8d40b66",
"disabled":false,
"number":123456,
"switch":false,
"text":"Value of extended attribute single-valued text",
"multivaluedText":["Value 1 of extended attribute multi-valued text","Value 2 of extended attribute multi-valued text"]
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
- Supplementary description for extended attributes: For downstream applications to receive the defined extended attribute values and information, mapping must be configured in IDaaS at Enterprise Center, Resources -> Applications -> Object Model -> Application Organization Model -> Mapping Definition. For how to configure extended attributes and mapping definitions, please refer to: Preparatory Work.
# Response Example
Status Code: 200
Request successful
- Response example with message signing and encryption enabled
{
"code": "200",
"message": "success",
"data": "j3rRBbc1Q1z1lZM0DDcUGFyaazO3NgnMbgK6UeWT35Druf5zyXg="
}
1
2
3
4
5
2
3
4
5
- JSON string format of the decrypted response body data
{
"id": "6c5bb468-14b2-4183-baf2-06d523e03bd3"
}
1
2
3
2
3
