UpdateAllTenants
Updates all tenants under the root tenant with tenant specific operations. The operation UpdateAllTenants is only allowed on the root tenant, because a child tenant does not contain tenants.
Element | Required | Description |
---|---|---|
UserName | No | Specifies the user for the child tenants. The user must be specified when the Operations elements is used The tenant is skipped when the user does not exist. |
Properties | No | Start element for the properties Active and UserManagement on the child tenants |
Operations | No | Start element for the operations on the child tenants |
The elements Properties and Operations can be used together.
Update properties
The element Properties updates the properties for all the child tenant. Only the properties that should be updated are specified.
Property Element | Description |
---|---|
Active | Specifies if the tenant is active (Yes) or not (No) |
UserManagement | Local user management is specified by Yes and central user management is specified by No |
The element Properties will not result in a task and are executed in the root tenant. The UserName element is not required when only the Properties element is used.
Example of the UpdateTenant operation that activates all the child tenants:
<UpdateAllTenants>
<Properties>
<Active>Yes</Active>
</Properties>
</UpdateAllTenants>
Update operations
The element Operations contains the operations like for example ImportDatasource for all the child tenants. The UpdateAllTenants operation will fork a new task for each child tenant to execute the script between Operations elements.
Example of the UpdateAllTenants operation:
<UpdateAllTenants>
<UserName>Administrator</UserName>
<Operations>
<ImportDatasource>datasource.xml</ImportDatasource>
</Operations>
</UpdateAllTenants>