Create account for someone else + user roles?

Hi!

My app requires that a project owner create an account and be the admin of that account, and then create accounts for others (contributors). The Contributors would then join the project, and have access to certain pages and be able to edit and view certain information (like personal information).

I need the project owner to be able to make any changes they want to the contributors (like if they need to change their name, for example).

So:

  • Project owner creates project and controls everything, including creating/editing accounts for contributors
  • Added contributors can only view and edit certain things within the project. They also can’t have an account on the app that isn’t tied to a specific project/owner. Every contributor account is tied to 1 specific project.

Any help would be so appreciated :)!

Hey there!

I do this sort of thing all the time. What I normally do is create a data field in the user type called “userRole”. When a user signs up initially they can be, by default, an admin. So you can set the “userRole” field to default to text “admin”.

When the admin user creates accounts for other people you can set that field to “projectOwner” when the user account is created instead of the default “admin”.

Then when going to pages, or displaying certain information you can restrict it by the “userRole” field.

I hope that was clear and that it helps!

Want to learn more?

www.nocodeminute.com

Presenting

1 Like

This is beautiful, thank you!

1 Like

Great! Glad it helped. :raised_hands: