Forum Academy Marketplace Showcase Pricing Features

Link one user to multiple accounts

Hello,

I want to create an app that helps with client onboarding and documents exchange. However, I have problem with user “Project manager”.
I have two types of users:

  1. Client
  2. Project manager

I want project manager to be able to log in to all his clients apps using the same e-mail.

I came up with the idea of login structure like this:
Client ID
Email
Password

How to set it up? I mean - in database, privacy rules. I think that I tried almost everything…

Kind regards

You don’t need two separate user types for project managers and clients, they are both users. Instead create an option set for the user data type called “type of user” and add “client” and “manager”. When the user onboards you can set their type as either a project manager or a client.

Then create a a data field on the user called “associated project manager” and make it a list of users. When a client signs up you can add a project manager to the users list of associated project managers.

Thank you very much for your reply ! I don’t think I understand all of what you wrote. Let me put it in another words. Will it work in this case ?
Case:
I have a comany “ABC”. This is my account. I want to have two clients working in this company to work within this company’s data as well as project manager on our side. But the thing is project manager is responsible for company “xyz” as well and he needs to log in to this company’s account. How to set this thing in “Privacy rules” section ? And do I need Company/Client (whatever) ID ? By the way, I will sign the user up myself :slight_smile: Sorry for bothering you.

Do you have any idea what could help here ? Sorry for bothering you.


So like this right? You have companies that have accounts and then clients can access that companies data and then a project manager on your side can access companies that they’re managing.

You can do something like this:
image

image

Your project managers could then toggle between company accounts simply by changing the “active account” from company x to company y, you could use a dropdown to do this. Your clients can only view data for their associated company. Your project managers can only view data for their associated companies. You could also set different permission obviously based on user type (managers can do certain things that clients can’t).

1 Like

Thank you very much ! You are very helpfull :slight_smile: I will try this one. But I have last question. How should I log the user in? I have the login page. The user types Client ID, e-mail address and password and what’s next ? I got stuck at this point. Should I set the custom state ? If so, how ? What rule should I use to simply show proper data ? Or should I create separate login page for project managers and clients ? Sorry for being intrusive :slight_smile:

you need to have a field on ALL your tables that is Type Company so you know which transaction belongs to which Company… then you need to have a CompanyLoggedIn field on your User Type which you can update at Login. Then in your Privacy Rules tab, you can restrict all your transactions by the LoggedIn field.
There’s some videos on YouTube about Privacy Rules. They explain this way better that i just have.

1 Like