User Account Management Hierarchy

This document visualizes the User Account Management hierarchy in SMAP based on the database schema and recent migrations.

Entity Relations & Architecture

The user and role management system uses a flattened, self-referencing structure:

Mermaid Diagram

[Diagram]

Flow: Superadmin Onboards New Client & Assigns Accounts

This flow illustrates how a Superadmin sets up a brand new organization client, including setting up their context, groups, and assigning social media accounts to those groups.

[Diagram]

Flow: Organization Admin Adds Group & Client

This flow illustrates how an existing Organization Admin manages their own context by creating a new group, adding a new client, and assigning social media accounts to that group.

[Diagram]