AnsweredAssumed Answered

It's possible to create a separate schema/database for each tenant?

Question asked by calin.chiper on May 9, 2018
Latest reply on May 9, 2018 by afaust

I want to create a separate db/schema using the TenantAdminService. In the Alfresco SDK I've created a tenant using a four argument method createMethod executed as a init method:

this.tenantAdminService.createTenant(
        "aaa.com", // username
        "aaa.com".toCharArray(), // password
        "D:\\alfresco-solution\\alfresco-dev\\tenants\\aaa.com", // content store
        "jdbc:postgresql://localhost:5432/alfresco_aaa" ); // Tenant DB URL (initial empty db)

It creates a new tenant with new content store but the database remains empty. It doesn't replicate/create a schema. 

Another issue is that if I execute this in a WebScript it tells me that: Tenant is disabled: aaa.com

Outcomes