Are there any future plans of implementing something like Clerk's organizations?
Organizations
Learn about how to create and manage Clerk organizations and their members.
5 Replies
Hi @fustuk.. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, there are plans for Wasp to support features similar to Clerk's organizations. A community member has shared a Prisma schema for a GitHub-like multi-tenant SaaS application that includes individual user accounts, organization accounts, team support, and role-based access control. This schema allows users to belong to zero or more organizations, and organizations can have zero or more teams. Different roles can be assigned to users in different organizations. You can find the schema here (https://gist.github.com/ldeavila/dbd866d793e7ecda8a43026bda41ae66).
Additionally, Wasp has plans to add default support for role-based access control (RBAC) in future versions. This will allow you to add a
role
field to the User
entity and check the value of that role in your queries/actions to decide if they should be able to execute that query/action or not. If they are not allowed, you can throw an HttpError 403 or something similar. You can check the open-saas template for an example of this concept, it already comes with the concept of admins and even has an admin dashboard in it. You can find the template here (https://opensaas.sh/).
Please note that these features are planned for future versions of Wasp and may not be available in the current version.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @fustuk., 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?Could you tell us about why would that kind of feature be useful to you? What kind of auth flows are you looking to support?
For example could be anything to do with corporate software, anything that an employer would pay and manage subscribtions of the team there etc.Any kind of internal content sharing can be made easier with this, ofcourse it is not hard to do the base for this, but I was just curious if you guys have future plans for it.
I already seen one other similar question regarding this, also the guy that bought my last saas was asking bout this feature.
I already seen one other similar question regarding this, also the guy that bought my last saas was asking bout this feature.
got it, some sort of team management + role access. We plan to add native support for RBAC in the future, @martinsos did some initial work/research for that. Admin/user dashboard should also be a logical part of that 🙂
alright thanks guys!