W
Wasp-lang•2w ago
fustuk.

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
kapa.ai
kapa.ai•2w ago
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?
miho
miho•2w ago
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?
fustuk.
fustuk.•2w ago
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.
matijash
matijash•2w ago
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 🙂
fustuk.
fustuk.•2w ago
alright thanks guys!
Want results from more Discord servers?
Add your server