Skip to main content

Role-based access control (RBAC) for Telegram automations

Workflow preview

Workflow preview
100%
Role-based access control (RBAC) for Telegram automations 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: Role Based Access Control (RBAC) for Telegram Automations This n8n workflow lets you control access to your internal Telegram bots and automation systems based on user roles and de...

Best for

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

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.noop, n8n-nodes-base.switch, n8n-nodes-base.datatable, n8n-nodes-base.stickynote, 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
Role-based access control (RBAC) for Telegram automations
Workflow name
Role-based access control (RBAC) for Telegram automations

πŸ” n8n Workflow: Role-Based Access Control (RBAC) for Telegram Automations

This n8n workflow lets you control access to your internal Telegram bots and automation systems based on user roles and departments. It ensures that only authorized team members β€” defined in your employee database β€” can interact with specific parts of your workflow. Perfect for agencies, internal tools, or multi-team organizations where permissions differ across roles (e.g., Marketing, Sales, Administration).

πŸ“Œ Section 1: Trigger & Input

⚑ Receive Message (Telegram Trigger) Purpose: Captures incoming messages from users interacting with your Telegram bot.

How it works:

When a user sends any message to the bot, the workflow retrieves their Telegram username and triggers the process.

Benefit:

Provides a secure and instant entry point for validating user identity before running any internal logic.

πŸ“Œ Section 2: Role Lookup

πŸ“‹ Employee Database (Data Table Node) Purpose: Fetches user details such as Position and Type from your internal employee table.

Structure Example:

UserName===Position===Type User_1===Marketing===SEO User_2===Administration===Manager User_3===Marketing===Target

Benefit:

Centralized employee management β€” you can update access levels (roles or departments) directly in the data table without editing the workflow.

πŸ“Œ Section 3: Position & Role Check

🧩 Choose Position (Switch Node)

Purpose: Determines the user’s department or role level (e.g., Marketing, Sales, Administration).

🧩 Check Role Type (Switch Node)

Purpose: Performs a second-level check β€” filters users by Type (e.g., SEO, SMM, Target).

Logic:

Marketing β†’ SEO β†’ Send to SEO workflow branch Marketing β†’ Target β†’ Send to Ads branch Administration β†’ Manager β†’ Grant full access Sales β†’ Employee β†’ Limited access

Benefit:

Allows multi-level, role-based logic with different automation paths for each team or position.

πŸ“Œ Section 4: Action Routing

πŸ’¬ No Operation Nodes (Placeholders) Purpose: Represent different action branches β€” each can later be replaced with the logic specific to that department.

Examples:

β€œTarget” branch β†’ connect to ad performance automation β€œSEO” branch β†’ connect to Google Search Console reports β€œSales” branch β†’ connect to CRM updates

Benefit:

A flexible access framework β€” ready to integrate with any process per department.

πŸ“Š Workflow Overview Table

Section Node Name Purpose

  1. Trigger Telegram Trigger Captures user messages
  2. Lookup Employee Database Fetches user position and type
  3. Check Choose Position / Role Switch Defines access path based on role
  4. Routing No Operation Nodes Separate workflows per department

🎯 Key Benefits

πŸ” Granular Access Control: Multi-level permission logic (Position + Role). βš™οΈ Dynamic Role Management: Update access directly in your data table β€” no redeployment needed. 🧱 Modular Design: Add or replace department branches without affecting core logic. πŸš€ Scalable Foundation: Perfect base for enterprise-grade permission systems or multi-team bots. πŸ“ˆ Cross-Platform Ready: Can be adapted for Slack, Discord, or internal chat tools.

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 - Telegram Trigger

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

Block 2 - No Operation, do nothing

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

Block 3 - No Operation, do nothing1

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

Block 4 - No Operation, do nothing2

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

Block 5 - Switch

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

Block 6 - Employee database

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

Block 7 - No Operation, do nothing3

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

Block 8 - No Operation, do nothing4

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

Block 9 - Sticky Note

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Choose Position

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

Block 15 - Sticky Note5

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

Block 16 - Sticky Note6

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

Block 17 - Sticky Note7

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

Block 18 - Sticky Note8

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

Block 19 - Slack Trigger

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

Block 20 - Get row(s) in sheet

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

Block 21 - Get a record

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

Block 22 - Get a database page

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

Block 23 - If

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

Block 24 - Filter

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

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Role-based access control (RBAC) for Telegram automations
Complexity advanced
Nodes 28
Categories Miscellaneous
Author Yehor EGMS
Published 25 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10171/10171.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 Role-based access control (RBAC) for Telegram automations do?

n8n Workflow: Role Based Access Control (RBAC) for Telegram Automations This n8n workflow lets you control access to your internal Telegram bots and automation systems based on user roles and de...

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.