Adding New Tenants¶
See the topics given below for instructions.
Adding tenants using the management console¶
You can add a new tenant in the management console and then view it by following the procedure below. In order to add a new tenant, you should be logged in as a super user.
Click Add New Tenant in the Configure tab of your product's management console.
Enter the tenant information in Register A New Organization screen as follows, and click Save.
Parameter Name Description Domain The domain name for the organization, which should be unique (e.g., abc.com). This is used as a unique identifier for your domain. You can use it to log into the admin console to be redirected to your specific tenant. The domain is also used in URLs to distinguish one tenant from another. Select Usage Plan for Tenant The usage plan defines limitations (such as the number of users, bandwidth etc.) for the tenant. First Name / Last Name The name of the tenant admin. Admin Username The login username of the tenant admin. The username always ends with the domain name (e.g., email@example.com ) Admin Password The password used to log in using the admin username specified. Admin Password (Repeat) Repeat the password to confirm. The email address of the admin.
After saving, the newly added tenant appears in the Tenants List page as shown below. Click View Tenants in the Configure tab of the management console to see information of all the tenants that currently exist in the system. If you want to view only tenants of a specific domain, enter the domain name in the Enter the Tenant Domain parameter and click Find.
Managing tenants using Admin Services¶
Other tenant management operations such as activating, deactivating, and updating, which are not available in the management console UI, can be done through one of the following admin services:
You can invoke these operations using a SOAP client like SOAP UI as follows:
Add the property in
<IS_HOME>/repository/conf/deployment.tomlto true to get access to the WSDL's of the admin services.
2. Start the product server by executing the product startup script from the
[admin_service.wsdl] enable = true
Get the list of available admin services. If you want to discover the admin services that are exposed by the product: 1. Execute the following command: In Linux
sh wso2server.sh -DosgiConsole
2. When the server is started, hit the enter/return key several times to get the OSGI shell in the console.In the OSGI shell, enter the following:
This will give the list of admin services for your product.
Start the SOAP UI client, and import the WSDL of the admin service that you are using:
Before invoking an operation
- Be sure to set the admin user's credentials for authorization in the SOAP UI.
- Note that it is not recommended to delete tenants.
Click on the operation to open the request view. For example, to activate a tenant use the
If your tenant domain is abc.com, invoke the
activateTenantoperation with the following request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mgt.tenant.carbon.wso2.org"> <soapenv:Header/> <soapenv:Body> <ser:activateTenant> <!--Optional:--> <ser:tenantDomain>abc.com</ser:tenantDomain> </ser:activateTenant> </soapenv:Body> </soapenv:Envelope>
See Managing Tenants with APIs for more information on using APIs to manage tenants.