Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Public users without Tenant #4527


User avatar
0
inzone created

Hello,

I am developing an Event management platform, event participants can have their own user account and can be shared between all tenants.

The idea is that if one of this users logs in into their account, they can see all the events they are registered to, regardless of the tenant these events belong to.

So, how should I manage these kind of users (will have a role like "Participant") so I can create them without associating them to any tenant?

Do I need to make any modification to AspNetZero / ASP.NET Boilerplate to make this work?

Best regards, Emiliano.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @inzone,

    I think events belong to tenants, right ?

    If so, regardless of participant's tenant or role, you need to show events for different tenants to a participant.

    In order to to that, you need to disable tenancy filter and select event records like that. See <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Data-Filters#disable-filters">https://aspnetboilerplate.com/Pages/Doc ... le-filters</a>.

    But, if you are planning to user database per tenant approach in the future, this will be a problem. If you are planning to use a single database, then you can use disable filter.

    I couldn't be sure about if the participant entity is a user or a different entity. Since you know the domain you need to decide that. In any way, disabling multi tenancy filter will solve your problem.