We can't sign you in at the moment, error code: 13, 15,-2146893802

Rob Nicholson 51 Reputation points
2022-12-10T17:00:32.18+00:00

On a local domain joined Windows 11 Pro computer, where the primary profile is logged/synchronised using a Microsoft 365 tenant, attempting to add additional profiles to access other M365 tenants is fraught with difficultly. I support four clients each with their own M365 tenant which I've got separate Edge profiles. All of them signed in fine the first time but two of them have signed out whilst two remain signed in. This is the error that shows on the profile that isn't synchronising anymore:

269243-xyfsrft1.png

If you try and turn on Sync in the profile settings, nothing happens. If you sign-out, you're up a creek without a paddle because you get this error trying to login:

269244-vyh1b6w1.png

Once you've got this error, you can't access that tenant ever again. Even removing the Edge profile and adding a new one doesn't help. The above error occurs again. The only solution I had was to restore the PC to an earlier Macrium Reflect image.

This is on Windows 11 Pro but I've managed to repeat the same problem on a test Windows 10 Pro virtual machine. The primary M365 tenant was added as an account to the domain joined PC by accepting this prompt:

269176-stay-signed-in.png

This ends up with this account setting:

269166-lvsv2wm1.png

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,344 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Rob Nicholson 51 Reputation points
    2022-12-12T12:08:26.48+00:00

    BTW - all systems are on 22H2.

    0 comments No comments

  2. Rob Nicholson 51 Reputation points
    2022-12-12T12:19:13.437+00:00

    Another scenario where M365 profiles are messed up. Brand new Windows 11 test build:

    1. Windows 11 Pro 22H2 in test VM (not activated)
    2. Logon initially as a Microsoft personal account (as you can't join domain during setup)
    3. Windows updates
    4. Joined to local domain
    5. Logged on as domain account
    6. Synchronise Edge using my own M365 tenant/email and select the option to "Stay logged in"
    7. Add second profile for another M365 tenant
    8. Try and open their SharePoint home page

    I get the error "You need permission to access this site". This is because Edge is attempting to logon (incorrectly) using the account added to Windows in step 6 and not the client's email acccount. It fails because my own M365 tenant/email is added as a guest to the client's M365 tenant (as they have shared documents with me), i.e. rob.nicholson@mydomain.com is present in the Azure AD for the @theclient.com.

    I'm pretty sure that if I deleted my own guest account in the client's Azure AD, that this issue would go away and I'd be able to open their SharePoint home page using the correct account.

    The core problem in this instance (but I suspect it's linked to sync problems) is that Edge is attempting to use the account that's added here to authenticate against the tenant. This behaviour is IMO wrong when you're set-up a separate Edge profile for the very reason of isolating settings, accounts etc.

    269589-to3gwwj1.png


  3. Brent Newland 0 Reputation points
    2023-08-22T20:41:51.0333333+00:00

    I have had this issue for the longest time, and I think I fixed it.

    Go to PC Settings > Accounts > Email & Accounts

    Add the account that is giving you the -2146893802 error here.

    Go back to Edge and click Sign In.

    My account started syncing immediately.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.