Skip to main content
Lark Skill cần quyền truy cập vào các tính năng của LarkSuite. Bạn phải thêm 35 OAuth scopes vào ứng dụng vừa tạo.
Bạn cần thêm scopes cho cả hai loại token: Tenant token scopesUser token scopes. Nếu chỉ thêm cho một loại, một số tính năng sẽ không hoạt động.

Cách thêm scopes

1

Mở trang Permission & Scope

Trong Developer Console, vào ứng dụng của bạn → tab “Permission & Scope” (hoặc “API Scopes”)
Lark Permissions & Scopes
2

Thêm scopes cho Tenant token

Chọn tab “Tenant token scopes” → dùng ô tìm kiếm, gõ tên scope và bấm “Add”. Lặp lại cho từng scope trong danh sách bên dưới.
3

Thêm scopes cho User token

Chuyển sang tab “User token scopes” → thêm cùng danh sách scopes như trên (trừ các scope tenant-only ghi chú bên dưới).
4

Lưu và publish lại

Sau khi thêm xong tất cả scopes cho cả hai tab, bấm “Save”. Nếu app đã publish, tạo version mới và publish lại để scopes có hiệu lực.

Danh sách scopes theo nhóm

ScopeTokenMô tả
calendar:calendarCả haiĐọc và ghi lịch

Danh sách đầy đủ (copy-paste)

Dán trực tiếp vào ô tìm kiếm scope trong Developer Console. Định dạng phân cách bằng dấu cách (space-separated).
bitable:app board:whiteboard:node:read calendar:calendar contact:contact contact:contact.base:readonly contact:user.base:readonly contact:user.department:readonly contact:user.email:readonly contact:user.employee_id:readonly contact:user.id:readonly contact:user.phone:readonly docx:document docx:document.block:convert drive:drive drive:drive:readonly im:chat im:chat:readonly im:message im:message:send_as_bot im:message:send_multi_depts im:message:send_multi_users im:resource sheets:spreadsheet task:comment:read task:comment:write task:custom_field:read task:custom_field:write task:section:read task:section:write task:task:read task:task:write task:tasklist:read task:tasklist:write wiki:wiki
Một số scope có thể cần Admin của tổ chức phê duyệt trước khi có hiệu lực. Nếu gặp lỗi permission denied sau khi cài xong, hãy kiểm tra trạng thái phê duyệt trong Developer Console.
search_users (tìm kiếm người dùng) yêu cầu quyền cấp app-level trong Developer Console - không phải OAuth scope. Bật riêng tại tab “App Capabilities”.