资源介绍
资源定义
用于标识当前飞书用户的身份、设备及登录状态。
字段说明
| 名称 | 类型 | 描述 |
|---|---|---|
Authorization | string | tenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token |
Content-Type | string | 固定值:"application/json; charset=utf-8" |
user_id_type | string | 用户 ID 类型 示例值:"open_id" 可选值有: - open_id:用户的 open id - union_id:用户的 union id - user_id:用户的 user id 默认值:open_id 当值为 user_id,字段权限要求: contact:user.employee_id:readonly 获取用户 user ID |
user_ids | string | 用户ID 示例值:["47f621ff"] 数据校验规则: 最大长度:100 |
code | int | 错误码,非 0 表示失败 |
msg | string | 错误描述 |
data | \- | -` |
∟ mask_sessions | mask_session\[\] | 用户登录信息 |
∟ create_time | string | 创建时间 |
∟ terminal_type | int | 客户端类型 可选值有: - 0:未知 - 1:个人电脑 - 2:浏览器 - 3:安卓手机 - 4:Apple手机 - 5:服务端 |
∟ user_id | string | 用户ID |
数据示例
json
{
"code": 0,
"data": {
"mask_sessions": [
{
"create_time": "1644980493",
"terminal_type": 2,
"user_id": "47f183f1f1"
},
{
"create_time": "1644983127",
"terminal_type": 2,
"user_id": "47f183ff1"
},
{
"create_time": "1644983127",
"terminal_type": 2,
"user_id": "47f183ff2"
}
]
},
"msg": ""
}