Accounts/Teams #756
Unanswered
joshnuss
asked this question in
Feature Requests
Replies: 1 comment 1 reply
-
Couldn't you create this now as it is in your own app using private tables and a policy with a SELECT query? or are you saying it would be better as an out of the box solution provided by the supabase team? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It might be worth having the concept of "Accounts", in addition to "Users".
It would make it possible to have teams of users for SaaS apps (multiple users per account) and still be able to use RLS.
Though, it may complicate things a bit, for example, what happens if a user has access to multiple accounts? Maybe the policy checks an array of
account_ids
, ieCREATE POLICY ... USING (account_id in auth.account_ids())
Caveat: It may create noise for apps that only need one level of identity. Though this kind of feature is tricky to bolt on later.
Beta Was this translation helpful? Give feedback.
All reactions