{* Office 365 16.5 and Azure CSP 1.1-1.2 *} {if $isOffice || isAzure} {if $isOffice} {assign var=officePlanProv value=$plan.Prov[$officeTenantId]} {assign var=officeExistingEmail value=$plan.Prov[$officeExistingEmailId]['value']} {assign var=officeSubdomainTitle value=$smarty.session.LANG.SUBDOMAIN_CAPTION} {else} {assign var=officePlanProv value=$plan.Prov[$azureTenantId]} {assign var=officeSubdomainTitle value=$smarty.session.LANG.AZURE_SUBDOMAIN_CAPTION} {/if} {assign var=o365Tenant value=$officePlanProv['value']|@json_decode} {assign var=isUseExistingO365Mode value=$allowExistingMsAccount&&((not $o365Tenant->aps && $defaultOfficeMode=="useExisting")|| $o365Tenant->bind_to_domain)}
 
{/if}