private OwaMailboxPolicy GetSettingsFromTenantConfig(OrganizationId orgId) { OwaMailboxPolicy defaultOwaMailboxPolicy = OwaSegmentationSettings.GetDefaultOwaMailboxPolicy(orgId); if (defaultOwaMailboxPolicy == null) { ExTraceGlobals.OwaSegmentationTracer.TraceDebug((long)this.GetHashCode(), "No OwaMailboxPolicy found in tenant config, doing fallback on to OWA vDir."); } return(defaultOwaMailboxPolicy); }
public static bool UpdateOwaMailboxPolicy(OrganizationId orgId, ADObjectId owaPolicyId, out ADObjectId newOwaPolicy) { newOwaPolicy = null; if (owaPolicyId == null) { OwaMailboxPolicy defaultOwaMailboxPolicy = OwaSegmentationSettings.GetDefaultOwaMailboxPolicy(orgId); if (defaultOwaMailboxPolicy != null) { newOwaPolicy = defaultOwaMailboxPolicy.Id; return(true); } } return(false); }