public void Synchronize() { var qpGroups = UserGroupRepository.GetNtGroups().ToList(); var adGroups = GetAdGroupsToProcess(qpGroups); var adUsers = _activeDirectory.GetUsers(adGroups); var qpUsers = UserRepository.GetNtUsers(); AddUsers(adUsers, adGroups, qpUsers, qpGroups); UpdateUsers(qpUsers, adUsers, adGroups, qpGroups); DisableUsers(qpUsers, adUsers); }
public void Synchronize() { QPContext.CurrentUserId = settings.DefaultUserId; var qpGroups = UserGroupRepository.GetNtGroups().ToList(); var adGroups = GetAdGroupsToProcess(qpGroups); var adUsers = _activeDirectory.GetUsers(adGroups); var qpUsers = UserRepository.GetNtUsers(); AddUsers(adUsers, adGroups, qpUsers, qpGroups); UpdateUsers(qpUsers, adUsers, adGroups, qpGroups); DisableUsers(qpUsers, adUsers); }