groups and roles feature #94
-
Do you think it would fit into the scope of pocketbase to have some kind of roles or groups for users? it would be cool if such information could be used within the collections access rules. it could be to have a role and user_role table. or just give users a customizable field that is available within access rules, can bring us a long way. what is your opinion? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
This should be already supported. You can add custom user field "role" and use it in your access rules. For example:
You can even allow one user to edit another user's profile data (eg. as in manager-subordinate relation). This is already mentioned in the Manage users guide. |
Beta Was this translation helpful? Give feedback.
-
Is the roles for admin, so everyone admin is not a "super-admin" on the roadmap? For me also this is the biggest issue with pocketbase and the one thing I see as truly missing. It's rare that there will only be one individual using the admin dashboard, and even rarer that each admin can be a super-admin. |
Beta Was this translation helpful? Give feedback.
-
I just ran into the issue of wanting to provide access to the admin dashboard, but only with permission to add/update data in certain collections. It would be a great addition, as it avoids the need to implement a similar CRUD in, e.g. React-Admin. |
Beta Was this translation helpful? Give feedback.
-
@osseonews you said it perfectly. I love the simple interface, it's so clean and fast. I've used commercial CMBD tools that take 3-4 seconds to load a page and they just feel bloated. Pocketbase is almost perfect for our small team to store configuration data (2 super-admins, 1 power user and 1 non-technical user) and it would be extremely helpful to change read/write permissions of collections for each user. We could ask another team in our business to create a front end, but what a hassle with too many people getting involved for a simple internal tool. The UI is so nice, it's tempting to see if we can fork Pocketbase and just modify the UI component, so that we can still sync with upstream without too much friction. It's either that or start looking at no-code options like Budibase/Appsmith/Tooljet. |
Beta Was this translation helpful? Give feedback.
This should be already supported. You can add custom user field "role" and use it in your access rules. For example:
You can even allow one user to edit another user's profile data (eg. as in manager-subordinate relation).
This is already mentioned in the Manage users guide.