W
Wasp4w ago
Outseek

Is there support for "multi-user accounts" or "team accounts" with role-based access control (RBAC).

I'm looking to add orginziations to my app. Is there any support for this? Basically where you can have users sign up and then invite other people on their team to their account.
2 Replies
kapa.ai
kapa.ai4w ago
Hi @Outseek. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Currently, Wasp does not have built-in support for multi-user accounts, team accounts, or role-based access control (RBAC) as a core feature. However, there are ways to implement these functionalities in your Wasp application. Here's what you can do: 1. Custom Implementation: You can create your own implementation of organizations and team accounts using Wasp's existing features. This would involve creating custom entities and relationships in your database schema to represent organizations, team memberships, and roles. 2. User Groups: As suggested by a community member, you can introduce a concept of UserGroup or Organization entity and create a many-to-many relationship between users and groups. This allows you to check if a user belongs to the appropriate group when accessing resources Discord support thread: Teams/Groups (https://discord.com/channels/686873244791210014/1213121869507592244). 3. Role-based Access: You can add a role field to the User entity and check its value in your queries and actions to make decisions about access control Discord support thread: Hi, how do you add authorization ? (https://discord.com/channels/686873244791210014/1211733266235916358). 4. Open-SaaS Template: Wasp's open-saas template includes a concept of admins and an admin dashboard, which might be a good starting point for implementing more complex user roles Discord support thread: Hi, how do you add authorization ? (https://discord.com/channels/686873244791210014/1211733266235916358). 5. Future Plans: Wasp does have plans to add default support for RBAC in future versions, but this is not available in the current version Discord support thread: Hi, how do you add authorization ? (https://discord.com/channels/686873244791210014/1211733266235916358). For a more complex setup, you might want to consider a schema similar to the one shared by a community member, which includes support for individual user accounts, organization accounts, teams, and flexible role-based access control Discord support thread: Prisma schema for a github-like multi-tenant saas (https://discord.com/channels/686873244791210014/1215047437929160724). While Wasp doesn't provide out-of-the-box support for team accounts and RBAC, you have the flexibility to implement these features using Wasp's existing capabilities. The exact implementation would depend on your specific requirements and app structure. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Outseek, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Vinny (@Wasp)
Vinny (@Wasp)4w ago
We don't currently offer it out of the box, so you'd have to implement it yourself by adding an "Organization" model and then relating any other models to the organization, rather than the individual user
Want results from more Discord servers?
Add your server