Regarding the OneDrive connect to SharePoint 2019 On Premise

Brass Contributor

Hi there,


The scenario is:


I have a SharePoint Personal Site with OneDrive mapping to an internet DNS (Extranet:; Default: http://hostname:Port Number) by using SharePoint AAM. Currently, our client could connect their own OneDrive by using the latest version of OneDrive App via http://hostname:Port Number on their Laptop or Desktop. When they connect to OneDrive, they could put their email address (It's a Company mail address NOT Office365 or Microsoft Account) and password into the popup windows to grant the authorization from internal OneDrive. That's a normal situation.


[ NOTE ] (We have already changed the settings according to the document : At this moment users can use DOMAIN\USER ACCOUNT to Sync files to their computer (Laptop or Desktop) by using OneDrive App).


The big problem is when we attempt to connect the Personal Site from the internet address (Extranet:, it is successful to login their own Personal Site to access the certain document library. If they click the "Sync" feature, SharePoint will call OneDrive App and the popup window comes up for asking us put the User Account and Password. 


If the format of user account is DOMAIN\USER ACCOUNT and password, OneDrive App works properly. BUT if the format of user account is Email address, the OneDrive App will bring us to login page of Office 365. Most of Users don't have Office 365 accounts.

My question is the OneDrive lives in the Intranet. When user access their OneDrive from outside via internet by using OneDrive App on their Laptop or Desktop, whether or not they could use company email address (NOT Office365 Account) as a login Account? 


Thanks everyone on this issue.



5 Replies
No, since you said "not all users have an account", this means that your domain is registered in Office 365, which means all domain accounts will route to Office 365, so you must use the domain\username format when doing on-prem if you don't have those users synced to 365 that could be causing the issue because that domain format will go looking in office 365 Azure AD.

@Chris Webb 

let me repeat it once again. so Chris, you mean we have got to let Office365 know currently we want to login which Domain so that when Office365 finds the format is DOMAIN\USER ACCOUNT then it will redirect to internal DOMAIN otherwise it will be treated as a Office 365 account. Is my concept correct?

Pretty much, since your domain exists in Office 365. You might be able to get around it by adding your on-prem URL's to trusted regions and having it "Auto logon using local username and password" set for trusted zone, but it's been a long time since I messed with a hybrid style setup.

@Chris Webb 

that will become so complicate. if my user they insist on using Email for logging, we need to let 365 trust our URL of OneDrive (http://onedrive.litwareinc.pri) and setup "Auto logon using local username and password". do we need a Hybrid architecture?


BTW do we also need to sync ad user account to AAD by using AAD connector??

Hello @Will

Does it work for you? Are you able to figure it out solution? I have been trying to sync SP2019 drive using app outside intranet but not working.