Super Admin Access

I am building a multi-tennant B2B SaaS application. Each tenant will have their own admin etc. to manage users for their instance.

I need to build the “back end” management part where I can log in, delete tenants, check usage etc.

Is there a best practices somewhere for how to do this with bubble?

I am thinking I could just have a page in my app that only a user desingated as super user could see. The super user would have to be set by toggle some flag in the production database.

I would them amend my privacy settings so super users could see all the data across all the tables in the app.

Am I on the right track?

1 Like

Yes

There’s no real best practice… just make a UI that’s only visible to the admins, and configure privacy rules that allow the admins to see more than everyone else. Make sure the UI is not visible on page load.

An Enterprise will have a List of Admins (List of Users). These are your company admins that can manage their company e.g invite users to company, manage billing etc.

Your site will also have a superadmin (you). You can set this through an isAdmin (yes/no) field on the User data type.

1 Like

thanks so much! Appreciate the feedback.

Nice one, we’re also currently building one. As the user above has said, there’s no best practices for this… his point is correct and I consider it as the solution for the bubble’s side. But you could also create a sub app that connects to your database with super admin settings and can also make changes, but that comes later with more effort and money.

1 Like