Employee Identity (EIAM)
Modify 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 |
|---|---|---|---|
| id | Yes | String(50) | The organization ID of the enterprise application Event callback prioritizes eventType, then id, and finally the code attribute |
| code | No | String(100) | Organization code, has no practical meaning in update events |
| name | Yes | String(40) | Organization name, must be unique within its hierarchy |
| parentId | No | String(50) | Parent organization ID |
| disabled | No | Boolean | Whether disabled, true indicates disabled status, false indicates enabled (not disabled) |
| leader | No | String | Organization leader |
| extAttr (Custom Extended Attributes) | No | - Integer - Boolean - String - Array | ① Extended Attributes: Parameter names are defined by the attribute names defined in IDaaS Enterprise Center, Application -> Object Model -> Application Organization Model -> Attributes; enterprises can customize extended attribute names and types; ② Extended Attribute Types: Currently only supports: Number, Text, Switch, 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 signature and encryption enabled
{
"nonce": "AmgjjEAJbrMzWmUw",
"timestamp": 15093849585,
"eventType": "UPDATE_ORGANIZATION ",
"data": "6xrHydJIXEWxQhUa3UqsXHWsDZ5LTAo/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 Update organization information based on the requested organization ID parameter, sending all organization attributes to the enterprise application.
{
"id": "6c5bb468-14b2-4183-baf2-06d523e03bd3",
"code": "1000003",
"name": "Wuhan Branch",
"parentId": "5b183439-36a8-4d08-94ba-61b3c8d40b66",
"disabled":false,
"number":123456,
"switch":false,
"text":"Value of extended attribute single-value text",
"multivaluedText":["Value 1 of extended attribute multi-value text","Value 2 of extended attribute multi-value text"]
}
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
- Supplementary description for extended attributes: Mapping must be configured in IDaaS Enterprise Center, Resource -> Application -> Object Model -> Application Organization Model -> Mapping Definition for the downstream application to receive the defined extended attribute values and information; How to configure extended attributes and mapping definitions, please refer to: Preparation Work.
# Response Example
Status Code: 200
Request Successful
- Response Example with Message Signing and Encryption Enabled
{
"code": "200",
"message": "success",
"data": "T41FtX1Q1z1lZM0DDcUGFyaazO3NgnMbgK6UeWT35Druf5zyXg="
}
1
2
3
4
5
2
3
4
5
- JSON String Format of Decrypted Response Body
data
{
"id": "6c5bb468-14b2-4183-baf2-06d523e03bd3"
}
1
2
3
2
3
