Employee Identity (EIAM)
Add Compliance Account
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 |
|---|---|
| account_all | Read and write permissions for account management interfaces |
| all | Read and write permissions for all interfaces |
# Request Specification
POST https://{your_domain}/api/v2/tenant/applications/{app_id}/accounts/basic-account
# 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
{
"account_name":"zhangs",
"user_id":"20220331164602949-904C-D475B60AE",
"name":"zs",
"org_code":"",
"password":"",
"disabled":false,
"extension":{}
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| account_name | Application Account Name | No | String | Application account name |
| user_id | User ID | Yes | String | Target user id |
| name | Name | No | String | |
| org_code | Application Organization Code | No | String | |
| password | Password | No | String | |
| disabled | Disabled | No | Boolean | |
| extension | Extension Attributes | No | Object |
# Response Example
Correct Example:
HTTP/1.1 201 Created
{
"account_id": "20220414163425614-2FD6-CA9B208BE"
}
Error Example:
HTTP/1.1 400 Bad Request
{
"error_code": " APP.0001",
"error_msg": "Application does not exist"
}
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
# Response Parameters
| Parameter Name | Chinese Name | Type | Description |
|---|---|---|---|
| account_id | Application Account ID | String |
# Error Codes
| Status Code | Error Code | Error Message | Handling Action |
|---|---|---|---|
| 400 | APP.0001 | Application does not exist | Please check if the application exists |
| App does not exist | |||
| 400 | USER.0001 | User does not exist | Please check if the target user exists |
| User does not exist | |||
| 400 | APP.ORG.0024 | The application organization does not exist | Please check if the application organization exists |
| The application organization does not exist | |||
| 400 | APP.ACCOUNT.0041 | {0} user has been bound by {1} application account, and cannot be bound by more than one | Please check if the user has been bound by another account |
| {0} user has been bound by {1} application account, and cannot be bound by more than one | |||
| 400 | APP.OBJECTMODEL.0005 | The application organization model is not opened | Please check if the application organization model is enabled |
| The application organization model is not opened |
Please provide the Markdown content you would like me to translate.
