diff --git a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx index 4d92e8fb..d8a89310 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx @@ -20,14 +20,17 @@ When enabling multi-tenant mode all user requests will always ensure that the re ## Enable Teams for your application -In order to use Teams, your application must have multi-tenant mode enabled. - -You can enable multi-tenant by API or from the dashboard (Overview screen). +In order to use Teams, your application must have multi-tenant mode enabled. You can enable multi-tenant from the dashboard (Overview screen) or using the API. ```js +// shows the current status +const appSettings = await client.getAppSettings(); +console.log(appSettings.app.multi_tenant_enabled); + +// enables teams client.updateAppSettings({ multi_tenant_enabled: true, }); @@ -37,12 +40,18 @@ client.updateAppSettings({ ```py -client.update_app(multi_tenant_enabled=enabled) +# shows the current status +print(client.get_app().data.app.multi_tenant_enabled) + +# enables teams +client.update_app(multi_tenant_enabled=True) ``` +Please keep in mind that enabling/disabling multi-tenant changes permission checking for your users. Do not change this on a production app without testing that your integration supports it correctly. + ## User teams When multi-tenant is enabled, users can only be created from your back-end. This is necessary to ensure that a user cannot pick its own team/tenant.