What is DirSync in Office365?
What is DirSync in Office365?

DirSync is a short form of Windows Azure Active Directory Synchronization Tool. It allows admin to synchronize their accounts from the internal Active Directory out to the Windows Azure Active Directory that Microsoft office365 uses.

DirSync Runs in every 3 hours to push the changes from On-Premises directory to the cloud.
DirSync only goes in one way from On-Premises to Cloud. If an admin wants to create a new user on the Azure Active Directory tenant, that user would live only in the cloud and would never go down to the on-premises directory.

What-is-DirSync
What-is-DirSync

Active Directory – Contains our User Object, Group-Object that we want to replicate Over.

DirSync:- It Retrieves from an AD and it Pushes Out to Office 365

Office365:-  Now office 365 Receives the Accounts, puts them in. The main thing it is not License the Accounts.

For Licenses we have to do our self or Automate the Process, It’s good – Sometimes we put the user in the active directory it doesn’t mean we need the license on them

In the Next Articles, We will show you how to install prerequisites and Install DirSyn.

 

Preparing and Installing prerequisites for DirSync – Office365

These are the list of things we need to install and configure before DirSync

Dirsync-prerequisites
Dirsync-prerequisites

These are the primary thing we need to make life easy for us.
Now I will show you how to install these all things.
Right now I am on DirSync Server. This is windows 2012 R2 Server. We will make sure that the pieces we need are installed there, and we have the permissions we need.

HostGator: Website Hosting Services, VPS Hosting & Dedicated Servers

Open Server Manager, click manage then open Add Roles and Features

Server-manager-2012-r2
Server-manager-2012-r2

After that

Add-Roles-and-Features-office365
Add-Roles-and-Features-office365

Now click Next and Move on to Installation Type – We need Feature so click Role-based or Feature-based installation.

Now click next
Select Our server from the server and make sure that it’s our server

Server-Selection-Make-sure-its-our-Server1
Server-Selection-Make-sure-its-our-Server1

Now click next

From Features open .net 3.5 and 4.5 feature tree

Feature-Wizard-office365
Feature-Wizard-office365

And make sure that both .net 3.5 and 4.5 frameworks checked and installed

Check-Both-.net-3.5-and-4.5-Installed-office365
Check-Both-.net-3.5-and-4.5-Installed-office365

Now Click install.

After that close this and open users and Groups.

Local-Users-and-Groups
Local-Users-and-Groups

Click on Administrators

Click-On-administrators
Click-On-administrators

 

DirSync Installation Process on a dedicated server for directory synchronization from on-premise to Office 365.

In the previous article, I have explained DirSync prerequisites, and now I am going to explain the DirSync Installation Process.

DirSync components – When we will install DirSync it will install the following components:-

DirSync-Components-office365
DirSync-Components-office365

Forefront Identity Manager(FIM):- FIM replicates information from On-premise to Cloud-based windows Azure Active Directory for office 365 which means everything that comes with it – services, local groups, security groups it will sync all of these from On-Premise to Online.

SQL Server 2012 Components:-
Why we have SQL server?
FIM – the whole management system, when it goes and grab information it needs a location to store it because of which SQL server 2012 components are required.

What is 'Active Directory (AD)'?

SQL Server 2008 Setup:-  FIM uses only setup files from SQL server 2008.

 

DirSync Installation Process

Step1:-Open Office 365 Admin Center and then click on Active Users then click on Active Directory Synchronization Setup.

Active-Directory-Synchronization
Active-Directory-Synchronization

Now when you click on setup, it will take you to the next page as shown below.

Activate-Active-Directory-Synchronization
Activate-Active-Directory-Synchronization

 

Step2:- Now you have to click on activate button to Activate the Active Directory Synchronization.

DirSync-Activation-in-office365
DirSync-Activation-in-office365

 

After Activation, it will take you to below page.

DirSync-Activated
DirSync-Activated

 

Step3:- Click Download to Install and Configure the DirSync Tool.

Download-Directory-Sync-tool
Download-Directory-Sync-tool

 

Make sure to install it as an Administrator.

Install-DirSync-As-Administrator
Install-DirSync-As-Administrator

 

Install-DirSync
Install-DirSync
DirSync-Installing-Components-setup
DirSync-Installing-Components-setup

 

Step4:-Click Finish to complete the installation.

Finish-DirSync-Installing
Finish-DirSync-Installing

 

Now Open Control panel to make sure whether DirSync has installed or not.

Uninstall-a-program
Uninstall-a-program

 

As you will see ton of different programs installed here – FIM, Microsoft Online Service Sign-on Assistant, SQL Server 2012 and SQL Server 2008 Setup files, SQL Browser, c++, Windows Azure Directory Sync Tool and most Important is FIM.

Now if you Open Users and Groups, you will see FIMSyncAdmins group. You have to be a member of this Admin group to work on DirSync Server.

FIMSyncAdmin
FIMSyncAdmin

You need to be FIMSyncAdmin to be able to run it, Now next step is just Signout and lets sign in and that way it will recognize that you are FIMSyncAdmin.