Employee Identity (EIAM)
Add Orphan 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 Description
POST https://{your_domain}/api/v2/tenant/applications/{app_id}/accounts/orphan-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":"zhangsan1",
"name":"zhangsan1",
"org_code":"",
"password":"",
"disabled":false,
"extension":{}
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| account_name | Application Account Name | Yes | String | Application Account Name |
| name | Name | No | String | |
| org_code | Application Organization Code | No | String | |
| password | Password | No | String | |
| disabled | Disabled | No | Boolean | |
| extension | Extension Attributes | No | Object |
# Return 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": "应用不存在"
}
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 |
|---|---|---|---|
| account_id | Application Account ID | String |
# Error Codes
| Status Code | Error Code | Error Message | Handling Measure |
|---|---|---|---|
| 400 | APP.0001 | 应用不存在 | 请检查应用是否存在 |
| App does not exist | |||
| 400 | APP.ORG.0024 | 应用机构不存在 | 请检查应用机构是否存在 |
| The application organization does not exist |
Understood. I will strictly adhere to all the rules you've outlined for translating the Markdown documentation for openplatform. Please provide the content you'd like me to translate.
