Accounts & Communities
FiveOps uses Discord OAuth through Supabase Auth.
User Profiles
When a user signs in, FiveOps creates or updates a profile with:
- Supabase user ID
- Discord ID
- Username
- Avatar URL
- Email when available
Discord IDs are important because staff access can be granted before a person has logged in.
Communities
A community is a tenant/workspace. Most operational data is scoped by community_id.
Community data includes:
- Staff members and roles
- Whitelist applications
- Player profiles and identities
- Tickets
- Discord links and channels
- FiveM connector tokens
- Resources and telemetry
- Security and inventory findings
- Backups
- Economy snapshots and alerts
- Support cases
Creating a Community
When a user creates a community:
- A
communitiesrow is created. - The creator becomes the owner.
- FiveOps creates an active owner staff member.
- FiveOps creates a trial subscription row.
Staff Access
Staff access can match by:
user_id, after the staff member has logged indiscord_id, before or after login
This lets owners add staff by Discord ID before the staff member signs in.
If another Discord account can see a community, check the Staff tab first. That account may have been added by Discord ID.
Community Switcher
Users with access to more than one community can switch communities from the sidebar.
If a user has access to only one community, FiveOps can redirect directly into that community dashboard.
