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

Create tenant with specific id. #9006


User avatar
0
acmeware created

I'm authenticating users against an external endpoint which also has a tenancy setup. I want to register the user to a tenant with the same ID number as the other system. Is it possible to register a tenant with the a specific ID if it does not exist already? I don't see a way to push down to the repository a tenant id.

thanks


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

    hi

    I think you can modify the constructor of the Tenant class to support the specified Id.

    Then you can use TenantManager to create new tenant wiht specified Id, and switch tenants in the current context after creation.