Three-tier role-based access
Admins, Managers and Team Members each get their own dashboard and their own allowed actions, checked on the server.
A case study in building role-scoped collaboration on React, Redux Toolkit, Express and MongoDB: a Kanban board, multi-member task assignment, approval-based onboarding and analytics for each role.

Team Management System is a MERN application I built to give a team one place to plan, assign and track work, with each person's view decided by their role.
It pairs a React and Redux Toolkit front end with an Express and MongoDB API secured by JWT and Bcrypt. Admins, Managers and Team Members each get their own dashboard and their own allowed actions, checked on the server. The aim was that a member can move their own tasks along without being able to delete a project, and a manager can run a team without touching organisation-wide settings.
Work happens on a Kanban board whose columns a team sets itself, new members join through a request and approval flow, and the dashboards turn the same tasks into completion rates, workload distribution and Chart.js progress charts.
Small teams often run their work out of a chat thread and a shared spreadsheet, and neither one keeps track of who is doing what, or by when.
Tasks get assigned in messages that scroll out of sight, deadlines live in somebody's head, and nobody can tell at a glance who is overloaded. The manager ends up chasing status updates a tool should already show.
Moving everything onto one shared board fixes the visibility, then raises a second question: who may change what. A team member should move their own tasks along without being able to delete a project, and a manager should run a team without touching organisation-wide settings. I wanted permissions to shape the design from the first screen, instead of being added once the screens were built.
| Before Team Management System | With Team Management System |
|---|---|
| Tasks assigned in chat messages that scroll away | A shared Kanban board with customizable statuses |
| Deadlines kept in somebody's head | A due date on every task, with automated reminders |
| No way to see who is overloaded | Workload distribution and completion rates per role |
| Anyone with the sheet can change anything | Three roles, with every action checked on the server |
The brief I set myself
I worked across the whole stack, from the React front end to the Express API and the Mongoose schemas, along with the permission model that ties them together.
On the front end that meant React built with Vite, Redux Toolkit for shared state and Material UI for components. On the back end it meant an Express and Node.js API with Mongoose schemas over MongoDB, plus the authentication and permission model. Much of the design work was deciding, for every screen and endpoint, which roles it belonged to and what each could do there.
| Front end | React with Vite, Redux Toolkit for board state, Material UI and Axios. |
|---|---|
| API | Express and Node.js routes behind role-checking middleware. |
| Data | Mongoose schemas for users, projects and tasks, with priority validated in the schema and statuses stored as editable data. |
| Security | JWT authentication, Bcrypt password hashing and secure API endpoints for every protected action. |
| Analytics | Role-specific dashboards with completion rates, workload distribution, Chart.js progress charts and exportable reports. |
Every task follows the same path: a member is approved onto the team, work is created and assigned, it moves across the board, and the dashboards report on it.
Step 1
A new member asks to join the team. The account has no access until the request is approved, and only then does its role take effect.
Step 2
A task references its project, carries a priority and a due date, and can be assigned to more than one member at once.
Step 3
The task moves through Kanban columns the team defined itself, and automated reminders go out before its deadline passes.
Step 4
Each role sees analytics scoped to what it may see: a member's charts come from their own tasks, and a manager's from the projects they run.
Every feature is shaped by the three roles, starting with a Kanban board whose columns each team sets for itself.
The access model
3 roles
Admin, Manager and Team Member. The role travels inside the signed JWT, and Express middleware checks it on every protected route.
Admins, Managers and Team Members each get their own dashboard and their own allowed actions, checked on the server.
Teams set the columns to match how they actually work, and tasks move between them as the work progresses.
Every task carries a Low, Medium, High or Urgent priority and can go to more than one person.
Due dates on every task, with automated reminders before they pass.
New members request to join and get access only once their request is approved.
Completion rates, workload distribution and real-time progress visualizations with Chart.js, scoped to what each role may see.
Reports for time tracking and project milestones that can be exported and shared outside the app.
JWT authentication, Bcrypt password hashing and secure API endpoints behind every protected action.
Four decisions shaped the build: where permissions are enforced, how passwords and tokens are handled, where board state lives, and how tasks are modelled.
Security
Each user record holds one of the three roles, and the role travels inside the signed JWT. Protected routes pass through middleware that verifies the token and compares the role with what the route allows, so the rule is written once on the server. The React app also hides controls a user cannot use, but the API is the part that actually refuses a request.
Auth
Passwords are hashed with Bcrypt before storage, so the database never holds one in plain text. On sign-in the API issues a signed JWT carrying the user's role, and the React app sends it with each Axios request. An account only gets that far once its onboarding request has been approved.
State
A task appears in several places at once: its Kanban column, the assignee's dashboard, the deadline list and the analytics charts. Holding that in local component state would mean threading updates through the tree or refetching after every drag. With Redux Toolkit slices, a status change is dispatched once and every view reading that task updates from the same store, while async thunks keep each Axios call next to the state it changes.
Data
A task references its project and holds an array of assigned members, which makes multi-member assignment and workload views possible without copying data between documents. Priority is a fixed set (Low, Medium, High, Urgent) validated in the schema, so the board and reports never meet a priority that does not exist. Statuses are the exception: because the Kanban columns are customizable, they are stored as data a team can edit.
| Technology | What it does in Team Management System |
|---|---|
| React (Vite) | The front end, built with Vite. |
| Redux Toolkit | Shared board state, with slices for tasks and async thunks for each API call. |
| Material UI | The component library behind the dashboards, forms and board. |
| Axios | HTTP requests from the Redux thunks to the Express API. |
| Node.js | The runtime for the API. |
| Express | Routing, plus the middleware that verifies tokens and checks roles. |
| MongoDB | Storage for users, projects and tasks. |
| Mongoose | Schemas and validation, including the fixed set of four priorities. |
| JWT | Signed tokens that carry each user's role to the server. |
| Bcrypt | Password hashing before anything is stored. |
Three of the hard parts: keeping the interface and the API in agreement, onboarding without open signup, and analytics that respect the same role boundaries.
Problem
With three roles, the front end and back end drift apart easily: a button hidden from a member while its endpoint still accepts the call, or a manager shown an action the API then rejects.
Solution
I treated the server as the source of truth and kept one map of which role may perform which action. The Express middleware enforces it, and the React components read the same rules to decide what to render, so a permission changes in one place.
Problem
A team tool where anyone can register and see the board leaks data to strangers. One where an admin creates every account by hand stops being practical past a handful of people.
Solution
The request and approval flow sits between the two. Anyone can ask to join, but the account has no access until the request is approved, and only then does its role take effect. Passwords are hashed with Bcrypt before storage.
Problem
Dashboards are where permission bugs hide. A workload chart is fine for a manager viewing their own team, and a leak if a team member can call the same endpoint and see everyone else's numbers.
Solution
The analytics endpoints scope their queries by the caller's role before aggregating, so a member's charts come from their own tasks and a manager's from the projects they run. Chart.js only receives data the user could already see.
Each role now gets a dashboard suited to its job, built from the same tasks and scoped to what that role is allowed to see.
The one in the screenshot summarises team members, submitted reports, pending reviews, completed and pending tasks and active projects for the selected week, with a chart of reports per member and a split of work that is completed, in progress or awaiting review.
The same JWT and Bcrypt foundation, with a simpler two-role split, also runs MERN Mail, my email campaign manager with admin and user roles. Building three tiers here showed me that most of the effort in access control goes into deciding who should see what, more than into the code that enforces it.
Next would be an activity history on each task, showing who changed its status or assignment and when, and calendar export for deadlines. For role-based dashboards built a different way, with Admin and Customer roles enforced in plain PHP, see the PHP knowledge base management system.
Short answers to the questions people ask most about the Team Management System and how its role-based access works.
A MERN web application that gives a team one place to plan, assign and track work, with a Kanban board, deadline reminders and analytics, and with what each person can do decided by their role.
React built with Vite, Redux Toolkit and Material UI on the front end, with Axios for requests. The API runs on Node.js and Express, with MongoDB and Mongoose for data, JWT for authentication and Bcrypt for password hashing.
Three: Admin, Manager and Team Member, each with its own dashboard and its own allowed actions, checked on the server.
The role travels inside the signed JWT, and Express middleware verifies the token and compares the role with what the route allows. The React app hides controls a user cannot use, but the API is what actually refuses a request.
Through a request and approval flow. Anyone can ask to join, but the account has no access until the request is approved, and only then does its role take effect. Passwords are hashed with Bcrypt before storage.
Muhammad Abdullah Awais, a full-stack developer based in Pakistan. I built it across the whole stack, and I am available for freelance and full-time work on products like it.
A TypeScript MERN finance tracker with categorised transactions, live charts, custom reports and an admin panel.
Read the case studyA TypeScript MERN email campaign manager with multi-account SMTP, templates, audit logs and admin oversight.
Read the case studyTeam work on a construction AI platform: assistant features with user approval and document extraction that shows its source.
Read the case studyI work remotely with teams in the US, Canada, the UK, Europe and the Gulf, and with clients across Pakistan. Based in Pakistan (PKT, UTC+5), available for freelance and full-time roles.