Creating and Configuring a Tenant
- Procedure
- Register a tenant by using the POST method
</v1/tenant>
and create a user with that tenant by using the</v1/user>
API from the Authorization service. For more information, see Create User. -
Log in to the Configurator UI with the newly created tenant.
-
In the Tenant Replication window, enter the Source TenantID and click REPLICATE.
Here Source TenantID is a tenant ID that exists and you want to copy its properties to the current tenant.
Note: When you log in with the default tenant or any other tenant with no data on the database, the data seeding option is enabled. When you log in with a non-default tenant and the database is not empty, the tenant replicate option is visible.Alternatively, you can use the
http://<host_address>:<port_address>/v1/configuration/replicateTenantProperties
endpoint from the configuration service to replicate tenant properties by using the REST service. -
Create an entry for the new tenant in the order_lock table in the Orders database by running the following query from the database client:
SELECT oms_seed_orderlock(10,'new_tenant_id')
This function accepts integers and tenantId. The integer value can be 7 to 12. The tenantId is the one that you want to create in Order Management.