Louis-Charles Gagnon

Microsoft Azure, Office 365 and SharePoint Blog

How to bypass the Office 365 login page when you have SSO in your organization

ADFS helps you use single sign-on (SSO) to authenticate users to multiple web applications over the life of a single session. This is accomplished by securely sharing digital identity and rights (Claims) across security and enterprise boundaries.
Office 365’s single sign-on capabilities with ADFS are a great improvement over dual-identities, and it takes online users a step closer to the seamless experience they have become accustomed to with an on premise web application.

But, once you’ve got it all hooked up you quickly find a couple of unexpected “features” that can ruin your user experience.

If you use one of the desktop applications (Outlook, Teams, Skype) or other application and link to a ressource that is on Office 365, if the user is not already logged in Office 365, he will be presented with the following login screen.



In order to bypass this link when you have the link follow the following url:
https://login.microsoftonline.com/login.srf?wa=wsignin1.0&whr=mydomain.com&wreply=https%3A%2F%2Fmyurl.sharepoint.com/

The mydomain.com is the name of the domain of your email (ex.: myname@mydomain.com). The wreply is the resulting url.

This allows seamless navigation from outside office 365 to within with your organisation SSO/ADFS.

Hope this helps.

Louis-Charles Gagnon, http://www.ls2.ca

Azure AD Azure AD Connect - Force Delta and Initial Sync via Powershell

Azure AD Connect will integrate your on-premises directories with Azure Active Directory. This allows you to provide a common identity for your users for Office 365, Azure, and SaaS applications integrated with Azure AD.

Azure AD Connect is the best way to connect your on-premises directory with Azure AD and Office 365. This is a great time to upgrade to Azure AD Connect from Windows Azure Active Directory Sync (DirSync) or Azure AD Sync as these tools are now deprecated and will reach end of support on April 13, 2017.


With AAD Connect, we no longer have a scheduled task that runs every 3 hour. AAD Connect has a built-in scheduler, which by default performs a delta sync every 30 minutes.

Although a synchronization now runs every 30 minutes, there may be occasions, where you still want to force a sync. 

To do so, you launch Windows PowerShell (run as Administrator) on the respective server on which AAD Connect has been installed and type the following to import the AAD Connect PowerShell module:

Import-Module ADSync

To force a delta sync, use the following command: Start-ADSyncSyncCycle -PolicyType Delta

To force a initial sync, use the following command: Start-ADSyncSyncCycle -PolicyType Initial

To check scheduler settings , use the following command: Get-ADSyncScheduler


You can see sync issue on your Office 365 administrator page: