Ejemplo n.º 1
0
        public void SyncUserFromActiveDirectory()
        {
            var syncBatch = new SyncBatch();

            syncBatch.BatchStart = DateTime.Now;
            Guid batchGuid = _syncBatchService.Insert(syncBatch);

            _userSyncService.SyncUsersFromActiveDirectory(_adContext, batchGuid);
        }
Ejemplo n.º 2
0
        public IActionResult Index()
        {
            var syncBatch = new SyncBatch();

            syncBatch.BatchStart = DateTime.Now;
            Guid batchGuid = _syncBatchService.Insert(syncBatch);

            //_groupSyncService.SyncGroupsFromActiveDirectory(_adContext, batchGuid);
            //_groupSyncService.SyncGroupUsersAndManagerFromActiveDirectory(_adContext, batchGuid);
            _userSyncService.SyncUsersFromActiveDirectory(_adContext, batchGuid);


            return(View());
        }