Configuring Tenants
Overview
An Urban Local Body (ULB) is defined as a tenant. Tenant configuration is done in mdms.
Pre-requisites
Before proceeding with the configuration, the following pre-requisites are met:
Knowledge of JSON and how to write a JSON is required.
Knowledge of MDMS is required.
User with permission to edit the git repository where MDMS data is configured.
Key Functionalities
For the login page, city name selection is required. Tenant added in MDMS shows in city drop-down of the login page.
In reports or the employee inbox page, the details related to ULB are displayed from the fetched ULB data which is added in MDMS.
Modules, that is, TL, PT, and MCS can be enabled based on the requirement for the tenant.
Deployment Details
After adding the new tenant, the MDMS service needs to be restarted to read the newly added data.
Configuration Details
Tenant is added in tenant.json. In MDMS, file tenant.json, under the tenant folder holds the details of the state and ULBs to be added in that state.
Note:
To enable the tenant the above data should be pushed in the tenant.json file. Here "ULB Grade" and City "Code" are important fields. ULB Grade can have a set of allowed values that determines the ULB type, (Municipal corporation (Nagar Nigam), Municipality (municipal council, municipal board, municipal committee) (Nagar Parishad), etc). City "Code" has to be unique to each tenant. This city-specific code is used in all transactions. Not permissible to change the code. If changed we will lose the data of the previous transactions done.
Naming Convention for Tenants Code
“Code”:“uk.citya” is StateTenantId.ULBTenantName"
"logoId": "https://s3.ap-south-1.amazonaws.com/uk-egov-assets/uk.citya/logo.png", Here the last section of the path should be "/<tenantId>/logo.png". If we use anything else, the logo will not be displayed on the UI. <tenantId> is the tenant code ie “uk.citya”.
2. Localisation should be pushed for ULB grade and ULB name. The format is given below. Localisation for ULB Grade:
Localisation for ULB Name:
Format of localisation code for tenant name : <MDMS_State_Tenant_Folder_Name>_<Tenants_Fille_Name>_<Tenant_Code>(replace dot with underscore)
Boundary data should be added for the new tenant.
Reference Docs
Title | Link |
tenant json file | |
content | MDMS Configuration |
Last updated