DuliDuli Open Platform
EN
简体中文
繁體中文
English
Quick Start APIs DuliDuli Official Website
模板

Organization Members


Request

GET http://[SERVER:9022]/v1/org/employees_by_dept?access_token={access_token}&org_id={org_id}&dept_id={dept_id}&include_sub_dept={include_sub_dept}


Parameters

Parameters

Type

Required

Description

access_token

string

Y

Authentication token

org_id

string

Y

Organization ID

dept_id

string

Y

Department ID

include_sub_dept

boolean

N


Include Members from Sub-departments

true: Include (default)

false: Do not include


Return:

{
"code": 0,
"msg": "ok",
"data":[
{
"org": "companyA",
"org_id":"1000000",
"account_id": "200200021", //
"account": "kiso1k1", //
"nick_name": "13610117012",
"status": "1",
"mobile_prefix":"86",
"phone": "13610117012",
"email": "13610117012@qq.com",
"gender": 1,
"avatar":"http://...",
"reg_time":"2024-12-12 15:53:07",
"position":"$position_1",
"dept_detail": [
{
"dept_id": "1",
"dept_name": "xxx",
"is_dept_head":true
},
{
"dept_id": "2",
"dept_name": "xxx",
"is_dept_head":false
}
]
},
{
....
}

]
}

Return Details:

Fields

Type

Desc

data


User List

org

string

Organization Name

org_id

string

Organization ID

account_id

string

User ID

account

string

User Account

nick_name

string

Nickname

status

int

"1": Normal, "2": Disabled, "3": Resigned

mobile_prefix

int

Phone Number Prefix

phone

string

Phone Number

email

string

Email

gender

int

Gender, "1": Male, "2": Female

avatar

string

User Avatar URL

reg_time

date

Registration Time yyyy-MM-dd HH:mm:ss

position

string

Job ID

dept_detail


Detailed Information within the Department

Return dept_detail:

Fields

Type

Desc

dept_id

string

Department ID

dept_name

string

Department Name

is_dept_head

boolean

Is Department (Organization) Head

true: Yes

false: No


Error Codes

code

message

Desc

100040

Invalid params

Invalid params

More Global Codes