ROOM64 / KNOWLEDGE / NOCODB

Session

Documentation for the Session object in NocoDB Scripts

อ่านต้นฉบับที่ NocoDB Official Docs ↗
เอกสารอ้างอิงภาษาอังกฤษเนื้อหาจากเอกสาร NocoDB คงรายละเอียดและโค้ดตามต้นฉบับ · ต้นฉบับอัปเดต 2026-09-25 ชื่อเมนูและฟีเจอร์ที่ใช้ได้ขึ้นอยู่กับเวอร์ชันและรุ่นที่ทีมใช้งาน

Workflows · ระบบอัตโนมัติและ Scripts · Session

← API Reference

สารบัญในหน้านี้

Documentation for the Session object in NocoDB Scripts

The session object provides information about the current user who is executing the script. It allows you to access contextual information about the user's identity and permissions.

Overview

The session object is available in every NocoDB script and provides a way to:

  • Access the current user's information (ID, name, email)

Properties

PropertyTypeDescription
currentUserCollaboratorA Collaborator object representing the current user running the script (read-only)

Usage Examples

Getting Current User Information

// Access the current user information
const currentUser = session.currentUser;

output.markdown('# Current User Information');
output.text(`ID: ${currentUser.id}`);
output.text(`Name: ${currentUser.name || 'No name set'}`);
output.text(`Email: ${currentUser.email}`);

  • Base : Documentation for the base object in NocoDB Scripts
  • Cursor : Documentation for the Cursor object in NocoDB Scripts
  • Table : Documentation for the Table object in NocoDB Scripts
  • View : Documentation for the View object in NocoDB Scripts
  • Field : Documentation for the Field object and Field Types in NocoDB Scripts
  • RecordQueryResult : Documentation for the RecordQueryResult object in NocoDB Scripts
  • Record : Documentation for the NocoDBRecord object in NocoDB Scripts
  • Collaborator : Documentation for the Collaborator object in NocoDB Scripts
เนื้อหาเอกสารอ้างอิงและภาพประกอบมาจาก NocoDB Official Docs · บทความแนะนำภาษาไทยเรียบเรียงโดย Room64 · เว็บไซต์นี้เป็นคู่มือประกอบการใช้งานโดย Room64 · เอกสารทางการ ↗

มีงานที่อยากให้ Software, AI หรือ Automation ช่วยอยู่ไหม?

เล่า workflow หรือปัญหาที่ทีมกำลังเจอ เราช่วยดูได้ว่าควรใช้ระบบสำเร็จรูป เชื่อมเครื่องมือเดิม หรือพัฒนาเพิ่มเฉพาะส่วนไหน

คุยกับเราทาง LINEhello@room64.net