1.新建应用

开发者后台 - 飞书开放平台新建应用,权限需要contact:contact.base:readonly,contact:user.email:readonly

安全设置
https://open.feishu.cn/app/appid/safe
需要配置newapi回调
https://newapi/oauth/feishu

2.访问newapi的系统设置
/console/setting?tab=system
找到自定义 OAuth 提供商
Client ID,Client Secret
填写飞书的App ID,App Secret
显示名称可以写飞书,slug可以写feishu
Authorization Endpoint:https://accounts.feishu.cn/open-apis/authen/v1/authorize
Token Endpoint:https://open.feishu.cn/open-apis/authen/v2/oauth/token

User Info Endpoint:https://open.feishu.cn/open-apis/authen/v1/user_info

Scopes:contact:contact.base:readonly

数据字段映射:
data.open_id,data.name,data.email

image.png
image.png

Last modification:May 22, 2026
如果觉得我的文章对你有用,请随意赞赏