need help with SSO with OneDrive for Business

%3CLINGO-SUB%20id%3D%22lingo-sub-1024652%22%20slang%3D%22en-US%22%3Eneed%20help%20with%20SSO%20with%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1024652%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20organization%20is%20currently%20implementing%20OneDrive%20for%20Business%20as%20a%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20configured%20the%20GPO%2C%20with%20the%20following%20enabled%3A%3C%2FP%3E%3CP%3E%3CSPAN%3ESilently%20sign%20in%20users%20to%20the%20OneDrive%20sync%20client%20with%20their%20Windows%20credentials%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20goal%20is%20for%20the%20user%20to%20be%20automatically%20logged%20in%20to%20Onedrive%20(without%20having%20to%20type%20in%20credentials)%20every%20time%20the%20user%20logs%20onto%20his%20computer.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHowever%2C%20this%20does%20not%20work.%20When%20a%20user%20logs%20on%20to%20his%20computer%2C%20he%20must%20log%20in%20to%20one%20drive.%20Subsequent%20boots%20work%20correctly%20with%20SSO.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOur%20company%20is%20using%20Password%20Hash%20Synchronization.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20think%20the%20problem%20lies%20with%20the%20intranet%20site%20and%20trusted%20site%20definition%20for%20internet%20explorer.%20I%20am%20not%20certain%20which%20sites%20should%20be%20added%20here.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20previously%20worked%20at%20another%20company%20where%20federated%20services%20were%20used%20instead.%20After%20adding%20the%20site%3A%20%3CA%20href%3D%22https%3A%2F%2Fsts.domainname.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsts.domainname.com%3C%2FA%3E%20to%20the%20intranet%20site%20(site%20zone%20assignments)%2C%20I%20was%20able%20to%20autoamitcally%20sign%20in%20to%20OneDrive%20for%20Business%20sync%20client%20(and%20connect%20to%20ODFB%20space%20in%20the%20cloud).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20am%20not%20certain%20why%20it%20is%20not%20working%26nbsp%3B%20at%20my%20current%20organization.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAny%20assistance%20%2F%20guidance%20would%20be%20greatly%20appreciated.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMark%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1024652%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1026550%22%20slang%3D%22en-US%22%3ERe%3A%20need%20help%20with%20SSO%20with%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1026550%22%20slang%3D%22en-US%22%3E%3CP%3EPHS%20on%20its%20own%20does%20not%20provide%20SSO%20capabilities.%20You%20need%20to%20have%20the%20Azure%20AD%20Connect%20Seamless%20SSO%20feature%20enabled%20as%20detailed%20for%20example%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Fhow-to-connect-sso%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Fhow-to-connect-sso%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1030451%22%20slang%3D%22en-US%22%3ERe%3A%20need%20help%20with%20SSO%20with%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1030451%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BHi%20Vasil%2C%20Thank%20you%20for%20the%20information.%20You%20were%20correct%2C%20the%20SSO%20feature%20was%20not%20enabled.%20I%20enabled%20it%20and%20I%20am%20able%20to%20connect%20directly%20to%20my%20cloud%20space%20without%20any%20issue%20(when%20I%20open%20a%20browser).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20SSO%20for%20Onedrive%20sync%20client%20still%20does%20not%20work.%20A%20user%20still%20has%20to%20login%20to%20Onedrive%20sync%20client%20one%20time%20in%20order%20for%20it%20to%20work.%20SSO%20then%20works%20for%20subsequent%20connections%20of%20user%20logging%20on.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20offer%20some%20suggestions%20on%20how%20to%20resolve%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20worked%20perfectly%20well%20at%20the%20other%20company%20that%20I%20configured%2C%20so%20there%20must%20be%20one%20minor%20configuration%20parameter%20that%20is%20missing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%20%2F%20guidance%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBanqMark%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1031602%22%20slang%3D%22en-US%22%3ERe%3A%20need%20help%20with%20SSO%20with%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1031602%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20need%20to%20preconfigure%20the%20account.%20Again%2C%20documented%20online%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Fuse-group-policy%23SilentAccountConfig%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Fuse-group-policy%23SilentAccountConfig%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20user%20will%20still%20need%20to%20select%20which%20folders%20to%20sync%2C%20etc.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1031623%22%20slang%3D%22en-US%22%3ERe%3A%20need%20help%20with%20SSO%20with%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1031623%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BHello%20Vasil%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20GPO%20is%20set%20correctly%2C%20but%20the%20ODFB%20sync%20client%20does%20not%20automatically%20connect.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20it%20be%20that%20the%20device%20(computer)%20must%20be%20azure%20ad%20joined%20in%20order%20for%20this%20to%20work%20as%20I%20would%20like%20it%20to%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20using%20password%20hash%20for%20aad%20sync.%20The%20other%20organization%20is%20using%20federated%20services%20and%20devices%20were%20not%20azure%20ad%20joined%2C%20but%20SSO%20works%20with%20ADFB%20sync%20client.%20All%20I%20did%20for%20them%20was%20add%20sts.domainname.com%20in%20site%20size%20assignment%2C%20local%20intranet%20and%20it%20worked.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1031764%22%20slang%3D%22en-US%22%3ERe%3A%20need%20help%20with%20SSO%20with%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1031764%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20Azure%20AD%20Join%20is%20a%20requirement%20for%20this%20specific%20scenario.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1198140%22%20slang%3D%22en-US%22%3ERe%3A%20need%20help%20with%20SSO%20with%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1198140%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F464765%22%20target%3D%22_blank%22%3E%40BanqMark%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20recommend%26nbsp%3Badd%20below%20key%20under%20%3CU%3EHKEY_CURRENT_USER%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5C%3C%2FU%3ERun%20to%20OneDrive%20to%20run%20Silently.%20%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EKey%20Name%20%3A%20OneDrive%26nbsp%3B%3C%2FP%3E%3CP%3EKey%20Value%20%3A%20C%3A%5CUsers%5C%25Username%25%5CAppData%5CLocal%5CMicrosoft%5COneDrive%5COneDrive.exe%20%2Fsilent%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

 

Our organization is currently implementing OneDrive for Business as a solution.

 

I have configured the GPO, with the following enabled:

Silently sign in users to the OneDrive sync client with their Windows credentials

 

The goal is for the user to be automatically logged in to Onedrive (without having to type in credentials) every time the user logs onto his computer.

However, this does not work. When a user logs on to his computer, he must log in to one drive. Subsequent boots work correctly with SSO.

 

Our company is using Password Hash Synchronization.

 

I think the problem lies with the intranet site and trusted site definition for internet explorer. I am not certain which sites should be added here.

 

I previously worked at another company where federated services were used instead. After adding the site: https://sts.domainname.com to the intranet site (site zone assignments), I was able to autoamitcally sign in to OneDrive for Business sync client (and connect to ODFB space in the cloud).

 

I am not certain why it is not working  at my current organization.

 

Any assistance / guidance would be greatly appreciated.

 

Thanks!

 

Mark

 

 

6 Replies
Highlighted

PHS on its own does not provide SSO capabilities. You need to have the Azure AD Connect Seamless SSO feature enabled as detailed for example here: https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sso

Highlighted

@Vasil Michev Hi Vasil, Thank you for the information. You were correct, the SSO feature was not enabled. I enabled it and I am able to connect directly to my cloud space without any issue (when I open a browser).

 

However, SSO for Onedrive sync client still does not work. A user still has to login to Onedrive sync client one time in order for it to work. SSO then works for subsequent connections of user logging on.

 

Could you offer some suggestions on how to resolve this?

 

This worked perfectly well at the other company that I configured, so there must be one minor configuration parameter that is missing.

 

Any suggestions / guidance would be greatly appreciated.

 

Thanks,

 

BanqMark

 

 

Highlighted

You need to preconfigure the account. Again, documented online: https://docs.microsoft.com/en-us/onedrive/use-group-policy#SilentAccountConfig

 

The user will still need to select which folders to sync, etc.

Highlighted

@Vasil Michev Hello Vasil,

 

The GPO is set correctly, but the ODFB sync client does not automatically connect.

 

Could it be that the device (computer) must be azure ad joined in order for this to work as I would like it to?

 

We are using password hash for aad sync. The other organization is using federated services and devices were not azure ad joined, but SSO works with ADFB sync client. All I did for them was add sts.domainname.com in site size assignment, local intranet and it worked.

Highlighted

Yes, Azure AD Join is a requirement for this specific scenario.

Highlighted

@BanqMark 

 

I would recommend add below key under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run to OneDrive to run Silently.  

 

Key Name : OneDrive 

Key Value : C:\Users\%Username%\AppData\Local\Microsoft\OneDrive\OneDrive.exe /silent

 

Hope this helps.