Cannot login to Edge in AD hybrid setup with Azure AD and roaming profiles

%3CLINGO-SUB%20id%3D%22lingo-sub-2835985%22%20slang%3D%22en-US%22%3ECannot%20login%20to%20Edge%20in%20AD%20hybrid%20setup%20with%20Azure%20AD%20and%20roaming%20profiles%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2835985%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3ESituation%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EServer%202019%20with%20local%20domains%20and%20azure%20AD%20connect%20to%20MS365%20tenant%3C%2FLI%3E%3CLI%3EDC%20contains%20custom%20suffix%20that%20matches%20primary%20domain%3C%2FLI%3E%3CLI%3E50%2B%20users%20that%20work%20on%20multiple%20computers%20in%20the%20company%20have%20a%20local%20domain%20account%20and%20ms365%20account%20with%20business%20premium%20license%20(cloud%20users%20synced%20from%20onpremise%20ad)%3C%2FLI%3E%3CLI%3EUsers%20logon%20to%20the%20local%20domain%20using%20their%20MS365%20emailadddress%2C%20single%20sign%20on%20kicks%20in%20so%20they%20can%20login%20to%20MS%20sites%20without%20entering%20credentials%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EProblem%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20problem%20is%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3EWhen%20a%20roaming%20user%20logs%20in%20at%20a%20computer%20for%20the%20first%20time%20they%20can%20open%20%3CA%20href%3D%22https%3A%2F%2Fportal.office.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fportal.office.com%3C%2FA%3E%26nbsp%3B%20without%20enterying%20credentials%20so%20SSO%20is%20working.%20Then%20they%26nbsp%3Bopen%20edge%20and%20try%20to%20login%20using%20their%20azure%20ad%20account%20to%20setup%20synchronization.%20When%20succeeding%2C%20the%20sync%20is%20enabled%20and%20favorites%20in%20the%20favorites%20bar%20are%20visible.%20This%20also%20adds%20a%20microsoft%20account%20to%20'access%20to%20work%20and%20school'%20(the%20local%20AD%20is%20already%20present).%20However%2C%20more%20and%20more%20users%20complain%20that%20the%20login-button%20in%20edge%20does%20nothing%20(some%20claim%20they%20see%20the%20login%20screen%20flash%20very%20quickly).%20We%20have%20a%20testlab%20and%20replicated%20the%20problem.%20The%20user%20logs%20in%20with%20a%20roaming%20profile%20and%20when%20opening%20edge%2C%20nothing%20seems%20to%20happen%20when%20clicking%20the%20login-button.%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%3CSTRONG%3EWorkarounds%3C%2FSTRONG%3E%3CBR%20%2F%3EWe%20searched%20the%20internet%20and%20found%202%20workarounds%3A%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E-%20kill%20all%20edge%20processes%2C%20delete%20the%20edge%20folder%20in%20appdata%20and%20run%20edge%20in%20win7%20compatibility%20mode.%20Then%20we%20get%20a%20login%20screen%20and%20can%20complete%20login.%20After%20this%20edge%20resets%20the%20compatibility%20mode%20itself%20so%20when%20start%20edge%20the%20next%20time%20it%20runs%20normal.%20Sync%20is%20still%20working.%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E-%20Run%20edge%20with%20the%26nbsp%3B%3CSPAN%3E--force-oneauth%20parameters.%20This%20forces%20the%20loginscreen%20to%20appear%20and%20we%20can%20complete%20the%20login%20and%20sync%20is%20enabled.%20When%20we%20close%20and%20run%20edge%20without%20the%20parameters%2C%20sync%20and%20login%20does%20not%20work%20anymore%3C%2FSPAN%3E%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%3CSPAN%3EWe%20are%20runnning%20a%20script%20to%20automate%20the%20first%20workaround%20multiple%20times%20a%20day%20as%20users%20are%20roaming%20from%20computer%20to%20computer.%20So%20we%20need%20to%20fix%20this%20instead%20of%20applying%20workarounds.%20Could%20the%20combination%20of%20edge%20%2B%20azure%20account%20and%20roaming%20profiles%20be%20a%20problem%3F%20And%20even%20if%20it%20is%2C%20how%20can%20we%20fix%20this%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%3CSTRONG%3EAdditional%20info%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3EThe%20testlab%20computer%20has%20the%20following%20setup%3A%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3EWindows%2010%20build%2019043%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3EEdge%2094.0.992.47%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%3CSPAN%3EI%20tried%20to%20create%20a%20microsoft%20tickets%20but%20it%20seems%20this%20needs%20a%20payed%20support%20contract....%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2840058%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20login%20to%20Edge%20in%20AD%20hybrid%20setup%20with%20Azure%20AD%20and%20roaming%20profiles%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2840058%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F871557%22%20target%3D%22_blank%22%3E%40pvlier%3C%2FA%3E%26nbsp%3BHello!%26nbsp%3B%20I'm%20not%20sure%20if%20you%20are%20running%20into%20the%20exact%20same%20issue%20but%20we%20had%20a%20previous%20thread%20on%20Tech%20Community%20which%20might%20be%20similar.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsers%20had%20issues%20with%20on-premises%20sync%20when%20they%20were%20getting%26nbsp%3Bimplicit%20sign-in%20with%20their%20MSA%20or%20AAD%20accounts%20instead.%26nbsp%3B%26nbsp%3B%3CSPAN%3E(%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fenterprise%2Fedge-86-0-622-58-on-premises-sync-not-working-over-vpn-with%2Fm-p%2F1846459%22%20target%3D%22_blank%22%3EEdge%2086.0.622.58%20On-premises%20Sync%20Not%20Working%20Over%20VPN%20With%20Cached%20Local%20Login%20-%20Microsoft%20Tech%20Community%3C%2FA%3E).%26nbsp%3B%20Here%20is%20the%20policy%20that%20was%20created%20to%20address%20the%20issue%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23onlyonpremisesimplicitsigninenabled%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23onlyonpremisesimplicitsigninenabled%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ELet%20us%20know%20if%20this%20does%20not%20help%20or%20your%20scenario%20is%20different.%26nbsp%3B%20Thanks!%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E-Kelly%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Situation:

  • Server 2019 with local domains and azure AD connect to MS365 tenant
  • DC contains custom suffix that matches primary domain
  • 50+ users that work on multiple computers in the company have a local domain account and ms365 account with business premium license (cloud users synced from onpremise ad)
  • Users logon to the local domain using their MS365 emailadddress, single sign on kicks in so they can login to MS sites without entering credentials

 

Problem

The problem is the following:

 

When a roaming user logs in at a computer for the first time they can open https://portal.office.com  without enterying credentials so SSO is working. Then they open edge and try to login using their azure ad account to setup synchronization. When succeeding, the sync is enabled and favorites in the favorites bar are visible. This also adds a microsoft account to 'access to work and school' (the local AD is already present). However, more and more users complain that the login-button in edge does nothing (some claim they see the login screen flash very quickly). We have a testlab and replicated the problem. The user logs in with a roaming profile and when opening edge, nothing seems to happen when clicking the login-button.

 

Workarounds
We searched the internet and found 2 workarounds:

- kill all edge processes, delete the edge folder in appdata and run edge in win7 compatibility mode. Then we get a login screen and can complete login. After this edge resets the compatibility mode itself so when start edge the next time it runs normal. Sync is still working.

- Run edge with the --force-oneauth parameters. This forces the loginscreen to appear and we can complete the login and sync is enabled. When we close and run edge without the parameters, sync and login does not work anymore

 

We are runnning a script to automate the first workaround multiple times a day as users are roaming from computer to computer. So we need to fix this instead of applying workarounds. Could the combination of edge + azure account and roaming profiles be a problem? And even if it is, how can we fix this?

 

Additional info

The testlab computer has the following setup:

Windows 10 build 19043

Edge 94.0.992.47

 

I tried to create a microsoft tickets but it seems this needs a paid support contract....

2 Replies

@pvlier Hello!  I'm not sure if you are running into the exact same issue but we had a previous thread on Tech Community which might be similar. 

 

Users had issues with on-premises sync when they were getting implicit sign-in with their MSA or AAD accounts instead.  (Edge 86.0.622.58 On-premises Sync Not Working Over VPN With Cached Local Login - Microsoft Tech Comm...).  Here is the policy that was created to address the issue: https://docs.microsoft.com/en-us/deployedge/microsoft-edge-policies#onlyonpremisesimplicitsigninenab...

 

Let us know if this does not help or your scenario is different.  Thanks!

 

-Kelly

Hi,
We have been struggling with the above issue since we have been using Edge Chromium (version 80).
We had a case open with Microsoft in February last year, just before lockdown.
It was getting clearer that what we wanted: AAD logon and Azure logon at the same time was going to be a challenge.
To make things more complicated: we are using VMware DEM for roaming data on managed on-prem systems and virtual machines.
This gives a bit more flexibility but a lot more reverse engineering and, if you are not careful, finger-pointing between MS and VM.
We ran in the above issue, no logon prompt coming up in Edge, with the introduction of Windows 10 20H2. Before that we had 1909, which did not have the issue.
Running Edge in Compat mode of with the --oneauth parameter is a workaround.
The problem can be seen on edge://signin-internals/ where you get a token error when things are not right with a gives token errors with a given Account ID.
This is where the complexity starts. On on-prem managed systems the Account ID is the same as the AAD OID Guid.
On intune laptops the Account ID is different then the OID.
With the --onauth parameter the authentication info is stored in LocalAppData\Onauth, in files with the same name as the OID. Without the parameter these files are not used but we have not found (yet) where they are kept.
We did found out that deleting the whole Windows profile (lots of DEM zip files) resets it all and then you are prompted by Edge for a logon, and it keeps the settings.
That is our status so far.

Regards, Henno