Help with organization & user management
Hey guys, I’m working on an app using Better Auth and need help figuring out how to support multi user access per organization (e.g. a restaurant).
Here’s our current flow:
A user signs up with email & password they’re effectively creating a "restaurant" account.
After onboarding, they access a dashboard to manage things.
The issue is, restaurant owners won’t be the ones managing daily tasks staff and managers will.
We are aiming to:
Get the owner to create an org ,
Create staff user accounts programmatically (not via invite links),
Assign roles (e.g. waiter, manager),
Revoke sessions and delete users,
The Admin Plugin seems like the perfect tool, but we’re unsure if it can work alongside the Organization Plugin, which handles members via email invites.
So my questions are:
Can Admin and Organization plugins be used together?
If not, is there a better or recommended way to handle this pattern?
Here’s our current flow:
A user signs up with email & password they’re effectively creating a "restaurant" account.
After onboarding, they access a dashboard to manage things.
The issue is, restaurant owners won’t be the ones managing daily tasks staff and managers will.
We are aiming to:
Get the owner to create an org ,
Create staff user accounts programmatically (not via invite links),
Assign roles (e.g. waiter, manager),
Revoke sessions and delete users,
The Admin Plugin seems like the perfect tool, but we’re unsure if it can work alongside the Organization Plugin, which handles members via email invites.
So my questions are:
Can Admin and Organization plugins be used together?
If not, is there a better or recommended way to handle this pattern?