Hi everyone! I'm building an application that needs a multi-level hierarchy: Organizations → Teams → Users.
I see that Appwrite provides a Teams service, but I'm unclear on the recommended approach for handling organizations that contain multiple teams:
Option 1: Use Teams as the organization layer, then use labels/attributes within a team to represent actual sub-teams?
- Complexity: Simplest approach, leverages built-in Teams service, but may require custom logic to enforce team-within-team permissions
Option 2: Create a custom Organizations collection that references team IDs, essentially linking multiple teams to a parent organization entity?
- Complexity: Moderate - requires additional database queries and manual relationship management between organizations and teams
Option 3: Flatten the structure entirely and use a single team per organization with roles/labels to differentiate access levels?
- Complexity: Simplest data model, but may become difficult to manage as the number of users and permission requirements grow
My use case: A parent organization needs multiple teams beneath it, where users can belong to multiple teams within the same organization, and each team has its own permissions and data access.
What's the recommended Appwrite pattern for this type of organizational structure? Any examples or documentation I should reference?
Thanks in advance!
Recommended threads
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.