---
title: "Role Management at Slack"
description: "Slack replaced its coarse guest/member/admin/owner hierarchy with a role-based access control system that grants granular permissions such as ARCHIVE_CHANNEL scoped to an enterprise or workspace entity."
url: "https://swe.quest/articles/role-management-at-slack-b07a74302caf6820"
canonical: "https://slack.engineering/role-management-at-slack/"
source: "Slack Engineering"
published: "2021-05-24"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["identity-auth","system-design","microservices","deployment","go"]
---

# Role Management at Slack

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2021-05-24, 9 min read, Case study. Original: [https://slack.engineering/role-management-at-slack/](https://slack.engineering/role-management-at-slack/)

## Summary

Slack replaced its coarse guest/member/admin/owner hierarchy with a role-based access control system that grants granular permissions such as ARCHIVE\_CHANNEL scoped to an enterprise or workspace entity. Authorization runs as ordered policy rules in the Hack monolith: deny restricted users, then check legacy preferences, then call a containerized Go permissions service over gRPC. That service reads from the same user\_id-sharded Vitess store as the monolith. Clients get non-authoritative permissions via the Flannel edge cache and real-time updates in Redux. Rollout went from a loopback service to dark-mode dual reads compared in Prometheus, then light mode, and a codegen CLI built on HHAST lets other teams add roles without touching framework internals.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Microservices](https://swe.quest/tags/microservices.md) (Backend & APIs)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Go](https://swe.quest/tags/go.md) (Languages)

## Prerequisites

- role-based access control
- gRPC and protobuf ([easy posts on RPC & gRPC](https://swe.quest/tags/rpc.md?difficulty=easy))
- database sharding basics ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

Slack, RBAC, Vitess, gRPC, Flannel, Hack, HHAST, Prometheus

## Related posts

- [Rolling out Roles](https://swe.quest/articles/rolling-out-roles-feb5c6f49f33b701.md): incident.io · 2022-03-11 · Medium · 6 min read · Identity & auth, Deployment, Product engineering, Go, TypeScript
  incident.io added role-based access control by mapping a fixed set of customer-facing roles (owner, admin, etc.) to granular internal scopes.
- [Unified Grid: How We Re-Architected Slack for Our Largest Customers](https://swe.quest/articles/unified-grid-how-we-re-architected-slack-for-our-largest-customers-0ecd04c49320fd50.md): Slack Engineering · 2024-07-31 · Medium · 10 min read · Multi-tenancy, Refactoring & migrations, System design, Distributed databases, Testing
  Slack re-architected its backend and clients to replace the workspace-centric model, where session tokens carried a workspace ID used for shard routing and access control, with an org-wide Unified Grid view for Enterprise Grid customers.
- [Email Classification](https://swe.quest/articles/email-classification-eca32c5c2123a429.md): Slack Engineering · 2021-07-28 · Medium · 11 min read · MySQL, Consistency models, System design, Scaling
  Slack classifies invited email addresses as internal or external, so it can steer users toward Workspace Invites or Slack Connect.
- [Staying Evergreen: How we automated secure access and repo hygiene in a shared org](https://swe.quest/articles/staying-evergreen-how-we-automated-secure-access-and-repo-hygiene-in-a-shared-b76aa86640c047a2.md): GitHub Engineering · 2026-10-15 · Medium · 8 min read · Identity & auth, Developer tools, Security, System design
  Evergreen is a Go-based GitHub App that automates quarterly outside-collaborator access reviews and stale-repo archival in a shared org of 1,400+ GitHub employees, customers and partners, built entirely from native primitives: scheduled Actions firing repository\_dispatch, webhooks, issue checklists, custom properties, and per-repo JSON state files in git that double as the audit trail.
- [This Week at Zed Industries: #15](https://swe.quest/articles/this-week-at-zed-industries-15-2870c5a45177bbfe.md): Zed · 2023-08-11 · Medium · 9 min read · Identity & auth, Developer tools, Rust, Performance engineering, Frontend
  Zed's weekly team update covers several threads of editor work.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
