Employee Identity (EIAM)

Query Organization Leaders by Organization ID Interface

Interface

# Permissions

The Identity Management API is authorized at the application level. Interface permissions must be set for different applications before calling the API. For details, please refer to API Permissions.

Permission Code Description
org_read Read permission for organization management interfaces
all Read and write permissions for all interfaces
read Permission for all read interfaces

# Request Specification

GET https://{your_domain}/api/v2/tenant/organizations/{org_id}/org-leader

# 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
org_id Organization ID Yes String Organization ID

# Response Example

Success Example: 
HTTP/1.1 200 OK
{
	"leader_status": false,
	"leader_user_name": "zhangsan",
	"leader_name": "张三",
	"leader_id": "20220711103603086-0AF1-026083E18"
}

Error Example: 
HTTP/1.1 400 Bad Request 
{ 
	"error_code": "ORG.0001", 
	"error_msg": "组织不存在" 
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# Response Parameters

Parameter Name Chinese Name Type Description
leader_status Organization Leader Status (Disabled or not) String Organization Leader Status (Disabled or not)
leader_user_name Organization Leader Username String Organization Leader Username
leader_name Organization Leader Name String Organization Leader Name
leader_id Organization Leader ID String Organization Leader ID

# Error Codes

Status Code Error Code Error Message Handling Measure
400 ORG.0001 组织不存在 Please check if the corresponding organization exists
Organization does not exist

I understand. Please provide the Markdown content you want me to translate. I will follow all the rules you have specified.