Employee Identity (EIAM)

Delete Application Account Roles

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/write permission for account management interfaces
all Read/write permission for all interfaces

# Request Description

DELETE https://{your_domain}/api/v2/tenant/applications/{app_id}/accounts/{account_id}/member-role

# 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

{
    "role_ids": [
        "20220415170305200-EF22-C2404E358",
        "20220415170305223-7193-A01122B37"
    ]
}
1
2
3
4
5
6

# Request Parameters

Parameter Name Chinese Name Required Type Description
app_id Application ID Yes String Target application ID
account_id Application Account ID Yes String Target account ID
role_ids Application Role ID Collection Yes List Maximum collection size is 50

# Return Example

Correct example:
HTTP/1.1 200 OK
{
    "success_list": [
        "20220415170305200-EF22-C2404E358",
        "20220415170305223-7193-A01122B37"
    ],
    "fail_list": []
}


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
14
15
16
17

# Return Parameters

Parameter Name Chinese Name Type Description
success_list Success Collection List Application Role ID Collection
fail_list Failure Collection List Application Role ID Collection

# Error Codes

Status Code Error Code Error Message Handling Measure
400 APP.OBJECTMODEL.0006 未开启应用角色模型 请检查应用角色模型是否开启
The application role model is not opened
400 APP.0001 应用不存在 请检查应用是否已被删除
App does not exist
400 APP.ACCOUNT.0028 应用账号不存在 请检查应用账号是否已被删除
App account does not exist

I understand. Please provide the Markdown content you need translated. I am ready to proceed.