Limit user in organisation dynamically.
With the organisation plugin is it possible to restrict the amount of members dynamically.
In our case we want to create an organisation by default when a user signs up, even in the free tier.
However while in free tier that user should be limited to 1 "seat" / member, themselves.
Once they upgrade to pro, we want a per seat pricing and basically auto link together the users that are in the org and the seats the user pays for.
Similar to how Google Workplace or Vercel instantly charge you when you create / invite a new user.
We are also using the stripe plugin, so curious to hear if there is a neat solution around this. Or at least some ideas on how to achieve something like this!
Appreciate any help!
3 Replies
Organization | Better Auth
The organization plugin allows you to manage your organization's members and teams.
Maybe throw an error in the before hook?
Hi @NotLuksus how did you end up this? Using stripeClient in org hooks?