Exemple #1
0
        internal static bool IsUserMemberOfTenant(string userEmailAddress, ADSessionSettings sessionSettings)
        {
            IRecipientSession tenantOrRootOrgRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(true, ConsistencyMode.PartiallyConsistent, sessionSettings, 921, "IsUserMemberOfTenant", "f:\\15.00.1497\\sources\\dev\\data\\src\\storage\\OfflineRms\\ServerManager.cs");

            return(tenantOrRootOrgRecipientSession.IsRecipientInOrg(new SmtpProxyAddress(userEmailAddress, true)));
        }