#b33fb0n3_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1263095257310957589
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I'm sorry I don't understand the question. What are you trying to do?
I am trying to implement RBAC (role based access control) in a project. Stripe provides a very good way to showcase how objects, relations, ... (schema) are build for specific things. For that I looking for a way to show permissions, groups, ... of users that are part of my account
Got it, none of that data is exposed via the API I'm afraid
Persons API is irrelevant in this context (it's for KYC stuff for the account, not Dashboard users)
ohhh :/ ok
Do you know any resources, where I can find such data schema? I tried to find some online and found rbac data schemas, but they are mostly just one user has multiple roles, that has multiple permissions. But there is nothing about "User A is allowed to create xY in that specific account"
Sounds like you're describing RLS really? Database concept that prohibits row access to specific users
Normally implemented at the DB level, so how you'd do it would depend on that. Supabase as an example: https://supabase.com/docs/guides/database/postgres/row-level-security
Otherwise you create middleware in your API that checks if user X has read/write for account Y
yea, that's a good direction. I thought about using it with roles for a specific user and this roles are saved on the user level. However the user can have for example a user role, but should be only access his own records. But the records itself have no "owner" claim or something similar in them. But somehow I need to check if the specific user is allowed to do crud operations with them
So it's not about row level security, more about object level security
Well normally a DB row is an API object. But that's an implementation detail really
but I am afraid that does not exists :/