Black Friday Sale!
Save up to 50% off any plans! Valid from 23 Nov to 30 Nov - Also valid for the existing customers
Open Closed

Create tenant with specific id. #9006


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)
  • 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.