Question: how adfs works with office 365?
Answer: Office 365 uses an Active Directory environment wherein a dedicated domain is created on the cloud for each user's Office 365 subscription. ADFS is used here by setting up directory synchronization (DirSyc tool) that creates accounts in Microsoft's domain matching the accounts within the user's domain.