Is it possible to have 2 user datatype

hi bubblers..

i noticed that i could copy paste my user data type..
and i was then wondering if it was possible to have 2 or maybe 3 different user data types with different fields but still have the same login secureness on there profile and they all will work the same way?

f.ex. in my case there are making a order management application i want one user data type for companies and one user data type for employees and a third for me as application admin there have acces to a different dashboard

best regards
christian

I think the best approach is to have an Option Set with User Type, and add this to the User Data Type.

You would then manage which fields get populated in your onboarding and user update flows/pages.

1 Like

I have one User datatype which I keep very, very lean (with no default data in any field), plus two satellite datatypes with different privacy rules that include all the fields that I would have put in User. For one thing, this prevents my User datatype from getting large just from bots and visitors. For another, in many cases, it reduces the workload units (WU) as long as I’m careful about that. And third, one of my satellites includes the publicly viewable fields and the rest are hidden in User and the other satellite.

I don’t see the wisdom of three User datatypes in the way you’re suggesting, though. One User datatype would be just for logging in and, as @thethinklab.au suggested, a field with an option set to tell you what kind of user it is. Everything else would be in other datatypes. Maybe that’s what you mean rather than having three different kinds of users log into three different User datatypes (with usernames and passwords in all of them).

oh sorry guys for my late response.. havent seen you messages before now..

thank you for your inputs.. thats also what i thought so would be the best solution and also how i have it now.. i was just wondering since i saw it was an option and since im still fairly new on bubble i would just find out what would be the best solution.. so again thank you both for your advices :slight_smile: