User Roles | Bubble.io Tutorial
Вставка
- Опубліковано 5 лют 2025
- Creating user roles within your Bubble app is very straightforward. I'll demonstrate how I go about creating these roles using option sets in Bubble.
____
Learn to Bubble
buildcamp.io
Join our no-code community
community.buil...
Buildcamp Studio no-code development agency
buildcamp.io/s...
very good explanation! Congratulations Gregory
Hi, is there a reason you use Option sets instead of having it as another data field under "Users"?
Option sets are faster and work in the browser
How will do you do tie the other users to a certain users
Nice, How can you apply that in the privacy rule where the condition ("Current User's RBAC's is Supervisor") and that the option "supervisor" comes from the Option sets list.
Hey, how do you invite users to work on let's say "project" and they can edit the "task" in the "project". Invite a user to create an account and in their account, they also have access to your "project" and they can edit tasks from your "project" from their account. Just like google sheets/docs/drive basically.
Hey did you every figure out how to do this?
@@tenzinray2672 haven’t yet, close to it but no go. Been waiting for investment to further fund the project
Hi. Thank's for this explanation but Bubble suggests that sensitive data (like who's got Admin powers) should not be defined with options set. What's your take on this ?
User roles are not sensitive data. They are just plain text words. They are talking about things like email addresses, API keys which should be secured with privacy rules.
Did they improve responsiveness of UI ?
yes it got a complete overhaul and is really good now
Hey,
Is it possible to use bubble to allow my users to sign up, create a team, then invite people to their team and pay $ per seat?
ie. that team will have user permissions ie. admins and normal users.
Also allowing the users to brand their team with a logo.
Anyone know how I might be able to achieve this with a no code tool?
This is all definitely possible with Bubble. It's quite difficult to think of something that isn't, actually
This tutorial sucks. How do I get the Role item you show at 1:53? Where do I specify what each role can do?
On the User data type you need to add a field called Role which is of type "Role" (i.e. the option set you created). Greg forgot to mention that part.
After looking at all these videos you've made, this one has no value to it. One reason, you can make an option set with roles for a admin, manager or other all day. But you didnt show how to assign duties to those roles. You just showed a newbie way of adding an option to the database. Also, on my end.. When I follow your exact directions, Roles are nowhere inside my database for me to select.
same here...this was not useful information..im still left figuring it out
@@lovelivelaugh4542 You have to create an Option Set (via Data) and create different Options (each being a role user, like Admin). Then you have to create a field on the Data Type of User, which as a Field Type is this Option Set you just created. This means that each User can now be attributed one of these Options (just like they have a Username, which is a Text field). Now you have to actually assign an Option to individual users in your Database (go to Data/App Data/All Users -> select a User -> Modify Database entry -> edit the User Option Field and pick the desired Option you created earlier). The final step is to make this system work for you. Likely, this is through conditionals on data elements. For example, you only want certain elements to be visible if a User has a certain role. You can watch the tutorial above on how to do that (but it comes down to something like 'If current user's Option Set = A -> This element is (in)visible'). Hope this helps.
@@remkomooi6040 Appreciate this reply so much. Went above and beyond. thank you