# Role-based access control (RBAC) for Telegram automations: n8n workflow

> Started by an incoming Telegram message, and works across Airtable, Google Sheets, Notion, Telegram and one other.

Source: https://millionrounds.com/workflow/role-based-access-control-rbac-for-telegram-automations (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Role-based access control (RBAC) for Telegram automations

Started by an incoming Telegram message, and works across Airtable, Google Sheets, Notion, Telegram and one other. 17 steps, 3 branches: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frole-based-access-control-rbac-for-telegram-automations)

**17 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**0** Loops or waits

**5** Services it connects to

## The flow

Starts it 4 Logic 9 Service 4

The steps in the order they run, from what starts it.

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Slack Trigger** Slack trigger *Starts it*
- 3 **Get row(s) in sheet** Google Sheets *Service*
- 4 **Get a record** Airtable *Service*
- 5 **Get a database page** Notion *Service*
- 6 **If** If *Logic*
- 7 **Filter** Filter *Logic*
- 8 **On form submission** Form trigger *Starts it*
- 9 **Schedule Trigger** Schedule trigger *Starts it*
- 10 **Employee database** Data Table *Service*
- 11 **Choose Position** Switch *Logic*
- 12 **Switch** Switch *Logic*
- 13 **No Operation, do nothing1** No Op *Logic*
- 14 **No Operation, do nothing** No Op *Logic*
- 15 **No Operation, do nothing2** No Op *Logic*
- 16 **No Operation, do nothing3** No Op *Logic*
- 17 **No Operation, do nothing4** No Op *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 17, with 3 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Airtable, Google Sheets, Notion, Telegram, n8n data table
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Airtable, Google Sheets, Notion and Telegram accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 17 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frole-based-access-control-rbac-for-telegram-automations)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Notion](https://millionrounds.com/workflows?service=Notion#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Auto-download Reddit memes to Google Drive with Telegram** 17 steps · Google Drive, Reddit](https://millionrounds.com/workflow/auto-download-reddit-memes-to-google-drive-with-telegram)
- [**Automate Birthday Wishes from Google Contacts with Telegram** 17 steps · Telegram](https://millionrounds.com/workflow/automate-birthday-wishes-from-google-contacts-with-telegram)
- [**Automatic backup of workflows to GitHub with Gmail** 17 steps · Gmail, Telegram](https://millionrounds.com/workflow/automatic-backup-of-workflows-to-github-with-gmail)
- [**BlueOps Auto CVE & IOC feed ingestor with Google Sheets** 17 steps · Email, Google Sheets](https://millionrounds.com/workflow/blueops-auto-cve-and-ioc-feed-ingestor-with-google-sheets)
- [**Capture vendor status updates with Google Sheets** 17 steps · Email, Google Sheets](https://millionrounds.com/workflow/capture-vendor-status-updates-with-google-sheets)
- [**Create a multi-model AI chatbot with Telegram and AIMLAPI** 17 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/create-a-multi-model-ai-chatbot-with-telegram-and-aimlapi)
