Employee Identity (EIAM)

Add Public Account

API

# Permissions

The Identity Management API is authorized at the application level. Before calling the API, you need to set API permissions for different applications. For details, please refer to API Permissions.

Permission Code Description
account_all Read and write permissions for account management APIs
all Read and write permissions for all APIs

# Request Description

POST https://{your_domain}/api/v2/tenant/applications/{app_id}/accounts/public-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":"zhangsan",
    "name":"zhangs",
    "org_code":"",
    "password":"",
    "disabled":false,
    "extension":{}
}
1
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 Full Name No String
org_code Application Organization Code No String
password Password No String
disabled Disabled Status No Boolean
extension Extended 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

# Return Parameters

Parameter Name Chinese Name Type Description
account_id Application Account ID String

# Error Codes

Status Code Error Code Error Message Handling Measures
400 APP.0001 应用不存在 请检查应用是否存在
App does not exist
400 APP.ORG.0024 应用机构不存在 请检查应用机构是否存在
The application organization does not exist

I'm ready. Please paste the Markdown content you need translated.