Organization Teams Permissions

Hi everyone! I'm using (and loving!) Better Auth on a platform that uses the organization plugin for which, I have enabled the Teams options as well. I would like to manage permissions based on organization roles. But at the same time, I would like to do something like this: - Roles (resources->actions) for specific teams. I was thinking on: - Maybe manually adding and removing roles with back-end logic based on the team that the user joins/leaves. But it has some edge effects I don't like (eg. duplication, what should the user keep after leaving a team, etc) - Finding another way to check the permissions, eg. first check the user permissions with the better auth api, and if it doesn't have, check deeply querying the teams they belong to. But that means that I'll need to "assign roles" to a team itself, which is weird to me. How would you solve this? I'll appreticate any feedback! Thanks a lot in advance!
1 Reply
Alejandro Montes
Alejandro MontesOP•2mo ago
up! someone maybe have any idea? 🙂 I was thinking for now going with the second option.

Did you find this page helpful?