若为上下游场景,corpid指定的为上游企业,仅返回上游企业激活的账号;若corpid指定为下游企业,若激活码为上游企业分享过来的且已绑定,也会返回。
curl --location --request POST 'https://qyapi.weixin.qq.com/cgi-bin/license/list_actived_account' \
--header 'Content-Type: application/json' \
--data-raw '{
"corpid" : "CORPID",
"limit":500,
"cursor":"xxxx"
}'
{
"errcode": 0,
"errmsg": "ok",
"next_cursor": "xxx",
"has_more": 1,
"account_list": [
{
"userid": "user1",
"type": 1,
"expire_time": 1500000000,
"active_time": 1500000000
},
{
"userid": "user2",
"type": 1,
"expire_time": 1500000000,
"active_time": 1500000000
}
]
}
【企业微信】API开发者 微信交流群
用微信扫右侧二维码,加入【企业微信】API开发者 交流群,互助沟通