So scenario was this.
Customer has an Office 365 tenant all ready in-place. The users in Onpremise AD have SamAccountNames as UserPrincipalNames.
The next step Is obvious. Add UPN-suffix and change UserPrincipalName to match email address.
Then add mail-attribute for the users.
Then install Azure AD Connect and do the configuration.
Sync for the first time and Enable AutoUpgrade.
When You see users as Synced then proceed with ADFS and integration with Office 365.
Add IE Registry settings with Group Policy Preference. Why with registry, You ask? Because then the user has options to add more sites if they wish to.
And If you want to allow IWA to authenticate with other Browsers.
Or
Smart Urls, for Your convience. Change the RED to Your own names.
Sharepoint:
Onedrive:
Owa:
Portal: