Tenant Resource Definition
A tenant is a group of users (e.g., users that belong to an organization) who share a common access with specific privileges to the software instance. A sample tenant definition, together with information on all the properties that can be added in a tenant definition JSON are as follows:
Sample tenant definition JSON
The following are sample configurations that can be used in a JSON to define a tenant:
{ "admin": "admin", "firstName": "Frank", "lastName": "Myers", "adminPassword": "admin123", "tenantDomain": "frank.com", "email": "foo@bar.com", "active": "true" }
Property definitions
All the properties that correspond to the tenant resource are explained as follows:
|
|
|
|
|
Main property definitions
Property | W | R | U | Description | M | DV | Data Type | Example | |
---|---|---|---|---|---|---|---|---|---|
JSON | UI | ||||||||
| Admin user name | √ | √ | The tenant's username. | Yes | N/A | String | admin | |
| First name | √ | √ | The tenant's first name. | Yes | N/A | String | Frank | |
| Last name | √ | √ | The tenant's last name. | Yes | N/A | String | Myers | |
| Admin user password | √ | √ | The tenant's default password that is specified by the super administrator. | Yes | N/A | String | admin123 | |
| Tenant domain | √ | √ | X | The tenant's domain name. The domain name should be unique. If the given domain name is already registered, the tenant adding process will fail. | Yes | N/A | String | frank.com |
| Admin email | √ | √ | √ | The tenant's email address. | Yes | N/A | String | foo@bar.com |
| Active | √ | √ | √ | This determines whether or not to activate the tenant. | No | true | Boolean | true |
| - | √ | √ | X | The tenant ID needs to be added only when updating a tenant. The tenant ID can be identified by listing the tenant details. | Yes | N/A | iInt | 2 |
| - | X | √ | X | The success key that the server sends to indicate that the tenant is added successfully. | No | N/A | String | |
| - | X | √ | X | Date the tenant is created. | No | N/A | Long | |
| - | X | √ | The service that the tenant registration was originated. | No | String | |||
| - | X | √ | The usage plan defines limitations (such as number of users, bandwidth, etc.) for the tenant. WSO2 Private PaaS comes with a predefined list, and you can add your item and/or tailor the existing items. For on-premises deployment, there is only one default plan, i.e., Demo. However, this property is not used in WSO2 Private PaaS. | No | String |