I'm working on a project where we need to enable company admins (initially set up by our team) to add users to their company. The goal is to store data such as custom prices, orders, and products against each company and display this specific data to users associated with that company.
Objective: We're looking to create a system where:
Company admins can add and manage users within their company.
Data specific to the company (custom prices, orders, products) can be managed and displayed to users based on their association with the company.
Current Approach: So far, I've explored using custom Firestore collections to manage companies and user associations, but I'm unsure about the best practices for setting up roles within companies and filtering data for users based on their company.
Challenges:
How to efficiently assign and manage user roles within a company.
Best practices for associating and displaying company-specific data to users.
Questions:
What's the recommended approach to manage user roles and permissions in a company context within FlutterFlow?
How can I associate company-specific data with users and ensure they only see data relevant to their company?