Questions around Users

Questions around Users

  

Morning.


I have a question about Users that can be created for applications in a situation where an application is multi-tenanted (e.g. a single application that many companies use, white label their offering and invite end customers to). 

If a single customer has a relationship by chance with two companies and comes to the white labelled application (they are not aware its the same application as it is white labeled by two different companies) and registers two separate accounts, one with company A and one with company B, can the Outsystems platform handle the username being the same email address?

What would be the best approach to solving this in Outsystems?

Thanks

Hamish 


     

Solution


Hi Hamish,

Please take a look at this documentation:

https://success.outsystems.com/Support/Enterprise_Customers/Maintenance_and_Operations/How_to_Build_a_Multi-tenant_Application

To manage the Users, you would need a multi-tenant Users eSpace, a Forge component for Multi-tenant management is available. 

Answering your questions:

- You will need to build a relationship between the user and the tenants that the User has access.

- One User can switch tenants in order to see the respective Tenant data.


Hope it helps you.

Daniel Martins.

Solution

Hi Amish,

If you create two users with the same username, one in each tenant, when they try to login on the white labelled application, how can the platform determine which tenant to choose? It will not have enough information as is.

The default implementation of the platform's Login behaviour can be found in the Users application, in Server Actions User_Login and User_LoginInternal.

Daniel Martins wrote:


Hi Hamish,

Please take a look at this documentation:

https://success.outsystems.com/Support/Enterprise_Customers/Maintenance_and_Operations/How_to_Build_a_Multi-tenant_Application

To manage the Users, you would need a multi-tenant Users eSpace, a Forge component for Multi-tenant management is available. 

Answering your questions:

- You will need to build a relationship between the user and the tenants that the User has access.

- One User can switch tenants in order to see the respective Tenant data.


Hope it helps you.

Daniel Martins.

Brilliant, thank you for the pointer. I shall read and absorb.


Hamish