// Token: 0x060006FE RID: 1790 RVA: 0x0001A440 File Offset: 0x00018640 internal static IDirectorySession UnderscopeSessionToOrganization(IDirectorySession session, OrganizationId orgId, ADSessionSettings sSettings, bool rehomeDataSession = true) { ADSessionSettings adsessionSettings = sSettings ?? session.SessionSettings; ADSessionSettings adsessionSettings2 = ADSessionSettings.RescopeToOrganization(adsessionSettings, orgId, rehomeDataSession); if (adsessionSettings2 == adsessionSettings) { return(session); } return(ADSession.CreateScopedSession(session, adsessionSettings2)); }