Skip to main content

Telegram chat access control with user permission database

Workflow preview

Workflow preview
100%
Telegram chat access control with user permission database preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

n8n Workflow: Access Control for Internal Chats or Chatbots This n8n workflow helps you restrict access to your internal chats or chatbots so that only authorized team members can interact with ...

Best for

  • Miscellaneous automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.noop, n8n-nodes-base.stickynote, n8n-nodes-base.switch, n8n-nodes-base.telegram, n8n-nodes-base.telegramtrigger, n8n-nodes-base.slacktrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.airtable

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yehor EGMS.

Original n8n.io source

1.1 Workflow description

Title
Telegram chat access control with user permission database
Workflow name
Telegram chat access control with user permission database

πŸ” n8n Workflow: Access Control for Internal Chats or Chatbots

This n8n workflow helps you restrict access to your internal chats or chatbots so that only authorized team members can interact with them. It's perfect for setups using Telegram, Slack, or other corporate messengers, where you need to prevent unauthorized users from triggering internal automations.


πŸ“Œ Section 1: Trigger & Input

⚑ Receive Message (Telegram Trigger)

Purpose: Captures every incoming message from a user interacting with your Telegram bot (or another messenger).

How it works: When a user sends a message, it instantly triggers the workflow and passes their username or ID as input data.

Benefit: Acts as the entry point for verifying whether a user is allowed to proceed.


πŸ“Œ Section 2: Access Table Lookup

πŸ“‹ User Access Table (Data Node / Spreadsheet / DB Query)

Purpose: Stores all your team members and their current access status.

Structure Example:

Username Access Status
user1 granted
user2 denied
user3 granted

Benefit: Centralized access control β€” you can easily update user permissions without editing the workflow.


πŸ“Œ Section 3: Permission Check

🧩 Check Access (IF Node)

Purpose: Compares the incoming user's name or ID against the access table.

Logic:

If status = granted β†’ Allow message to continue  
If status = denied β†’ Stop workflow execution

Benefit: Ensures only approved users can interact with your automations or receive responses.


πŸ“Œ Section 4: Response Handling

πŸ’¬ Send Reply (Telegram Node)

Purpose: Sends a message back to the user depending on their access level.

Paths:

  • βœ… Granted: Sends the normal bot response or triggers the main process.
  • ❌ Denied: Sends no reply (or an optional "Access denied" message).

Benefit: Prevents unauthorized access while maintaining a seamless experience for approved users.


πŸ“Š Workflow Overview Table

Section Node Name Purpose
1. Trigger Receive Message Captures incoming messages
2. Access Table User Access Table Stores usernames + permissions
3. Check Check Access Verifies if user has permission
4. Response Send Reply Sends or blocks response based on status

🎯 Key Benefits

  • πŸ” Secure access control: Only trusted users can trigger your internal automations.
  • βš™οΈ Dynamic management: Easily update user permissions from a table or database.
  • 🧠 Lightweight setup: Just three nodes create a fully functional access gate.
  • πŸš€ Scalable foundation: Extend it with role-based access or activity logging later.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Permission

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 7 - Answer Denied

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 11 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Slack Trigger

Type / Role
n8n-nodes-base.slackTrigger - slackTrigger
Config choices
Version 1

Block 13 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 14 - Get a record

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 15 - Get a database page

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 16 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 18 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Database with employees

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

3. Summary Table

Workflow Telegram chat access control with user permission database
Complexity advanced
Nodes 19
Categories Miscellaneous
Author Yehor EGMS
Published 14 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9615/9615.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Telegram chat access control with user permission database do?

n8n Workflow: Access Control for Internal Chats or Chatbots This n8n workflow helps you restrict access to your internal chats or chatbots so that only authorized team members can interact with ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Miscellaneous use case.