User roles in appgyver and firebase

Hi guys,

Could it be possible to create user roles in appgyver and firebase?

  • User_role1: Entrepreneur
  • User_role2: Investor

For example, a user will sign up/register as an “Entrepreneur” or “Investors”. Both of which will have different privileges and access to different pages of the app.

Meaning an “Entrepreneur” will not be able to access information that is assigned to an “Investor” user role.

Please help with this, thanks in advance.

See attached image for reference

Best regards

The way i usually do that, is by giving a displayName to each group in the account detail, more here
https://firebase.google.com/docs/reference/rest/auth#section-get-account-info

i update the name when they sign up from here
https://firebase.google.com/docs/reference/rest/auth#section-update-profile

And from there, i can grand different access to each user when the sign in

Thats the way i do it, from what i know, there is not special way to do it but im interested to see what others have to say

2 Likes

Thanks Dimos,

I’ll look into that!

Regards

1 Like