Employee Identity (EIAM)
Delete User
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 |
|---|---|
| user_all | Read and write permissions for user management APIs |
| all | Read and write permissions for all APIs |
# Request Specification
DELETE https://{your_domain}/api/v2/tenant/users/{user_id}
# 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
None
# Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| user_id | User ID | Yes | String | The ID of the user to be deleted |
# Response Example
Success Example:
HTTP/1.1 204 No Content
Error Example:
HTTP/1.1 400 Bad Request
{
"error_msg": "用户不存在",
"error_code": "USER.0001"
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# Response Parameters
None
# Error Codes
| Status Code | Error Code | Error Message | Handling Measures |
|---|---|---|---|
| 400 | USER.0001 | 用户不存在 | 请检查对应用户是否存在 |
| User does not exist |
