Forum Discussion

DivideByZero's avatar
DivideByZero
Copper Contributor
Jun 10, 2024

SSO issues in Word and Excel, but not Outlook

Hi,

 

Strange issue started a month ago at a customer site. They use RDS with Office 365 installed. Historically this has been working fine, then it randomly stopped signing in properly for all users. We can't point it down to anything specific however. Network / User / Settings all look good.

 

What is strange is on first login to Outlook, it says it's done SSO but says unlicensed. A simple restart then would show it licensed. We have managed to work round that issue by saving the license folder \appdata\local\microsoft\office\ to the UPD. 

So for this, a month ago, new and existing users would just sign in and it worked. Then something changed and users were being asked to sign in every time. So we have made this change to include \appdata\local to the UPD - now users only see this problem once (a month). While not as good as it was a month ago, it is acceptable.

 

However, and this is what I need help with. SSO is NOT working at all from Word / Excel.

Open Word

Blank Micrsoft Sign In box pops up.

You have to type username and hit enter

You then have to type your password and hit Sign In

That popup then goes away, but at the tope right of Word, it still shows "Sign In".

When you go to Account, it still has a Sign in box.

BUT... if you now close and reopen word, both of those show the signed in user.

 

The problem here is that this doesn't persist over the UPD, so happens every time the users open Word or Excel. As this is used by a business app to open docs, it's actually breaking the process and we need to fix this.

 

I have been having a look at SSO info, because it feels like something fairly low level has changed with how this works, but can't find anything helpful, hence posting here after about a month of searching and trying things.

 

It's not very helpful when you have MS links like: 

How to use Remote Connectivity Analyzer to troubleshoot single sign-on issues for Microsoft 365, Azure, or Intune

https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/active-directory/single-sign-on-issues

 

How to run Remote Connectivity Analyzer to test SSO authentication

To run Remote Connectivity Analyzer to test SSO authentication, follow these steps:

  1. Open a web browser, and then browse to https://www.testconnectivity.microsoft.com/tests/SingleSignOn/input.

 

However, that page just hangs with LOADING written on it. Then on the change notes for this page we see that it was removed in 2022!

 

Version 4.0.15 (October 2022)

  • Removed the Single Sign-on Test now that basic authentication in Exchange Online is being disabled.

 

Quick note on the setup. 

AD is synced to Entra using Entra Connect (Password Hash Sync + SSO enabled), latest version. SSO URLs are added to Internet trusted sites as per setup instructions. Network has been tested and all URLS accessible and working for the user. User is on RDS on fully updated Server 2016 and is on the latest Office 365 app updates.

 

So I guess my first question is:

 

1) Does SSO still work for Word and Excel?

Is it a realistic expectation that the user will sign in to the PC and then Word and Excel will automatically sign in for the user (proper seamless single sign on) like it was doing only a month or so ago?

 

2) What can I do to test and troubleshoot this if it should be working?

I have been trying for a month, so I have already tried a lot of things. But maybe I am missing some tests?

 

Any info to help get this working again (or that it's no longer possible and we missed that instruction from MS) would be ideal.

 

Thanks in advance

 

  • WelkasWorld's avatar
    WelkasWorld
    Brass Contributor
    Hi,

    A lot of people are currently experiencing a similar issue with SSO.
    It might be due to the fact that Microsoft is after changing the Windows Single sign on experience. In order to be compliant with the Digital Markets Act (DMA) within the European Economic Area (EEA), Microsoft has started altering how Windows operates to align with global regulations like the DMA. One significant change involves the sign-in process for apps on Windows.
    If you look at the sign-in logs for the users and see error code 9002341 or similar with the failure reason being "User is required to permit SSO", have a read through my blog post below.

    https://www.welkasworld.com/post/tackling-mfa-fatigue-a-solution-for-sign-in-error-code-9002341-user-is-required-to-permit-sso

    Hopefully this helps.
    • DivideByZero's avatar
      DivideByZero
      Copper Contributor
      That sounded really hopeful, but sadly it's not that. I don't see any failures in the sign in logs for the Office sign ins.

      What is weird is that SSO does work if you launch Outlook twice. Yet it will never automatically work if you launch Word or Excel as many times as you like.

      It definitely feels like something is happening with Office itself all of a sudden, or maybe Windows Server... but if that was the case I would expect this to impact more people and see more posts about this. Having done a "in the last month" search for this, very few hits.
      • DivideByZero's avatar
        DivideByZero
        Copper Contributor
        Actually, slight amendment to that. SSO works normally from Outlook, it's just the license took 2 logins to pull down until we started saving the \appdata\local\microsoft\office folder.

        However, on a new login you can do the following.

        1) Start word, get prompted to sign in via pop up.
        2) cancel and close Word.
        3) Start word, get prompted to sign in via pop up.
        4) cancel and close Word.
        5) Start word, get prompted to sign in via pop up.
        6) cancel and close Word.
        7) You can do this all day...
        😎 START OUTLOOK. A sign in window pops up and does something automatically and signs you in. (proper seamless SSO).
        9) Start Word, it's signed in.

        So, SSO is working in Outlook, but not Word or Excel.

        SSO also works as expected to share sharepoint.com - login happens seamlessly, nothing to type in etc.

        It's just Word and Excel that it doesn't work for.
  • koenwalraevens's avatar
    koenwalraevens
    Copper Contributor
    No luck with MS premium support. I opened a ticket for 2 issues (SSO login in outlook and privacy questions after first logon).
    Answer from MS Premium Support:
    * 'privacy questions after first logon': in Europe it's by design due to new regulations.
    * SSO does not 'work' when starting outlook for the first time (we still get a logon prompt even though everything is set up correctly (reg keys)): it is being investigated by the product engineers (PG) and is not a 'big' issue since you can still log on. Hence my case has been closed since it's - in their opinion - not a major issue and is being investigated 'higher up'.
    What's at least said ironic is:
    - that I have can nog log a case with the product engineers team
    - the case I opened with O365 premium support is closed
    - I get the feedback from O365 premium support that I have to go by them to get feedback from the product engineers.

    So I have to ask myself what the status is of the SSO issue to which the answer - until now - always is 'Our Product Groups have not provided an estimated time of arrival for this issue'.

    I guess no support is also a form of support...
    • DivideByZero's avatar
      DivideByZero
      Copper Contributor
      Ouch.

      For us, Outlook works on 2nd try. So open outlook, it asks to sign in. But just close that without signing in and re-open Outlook and it's signed in.

      But Word will never sign in (try 100 times and it won't). Once Outlook is signed in though, Word is too on next try.

      For the Privacy pop-up, that should be 100% fixable however as we did that. In the Office GPO template there are some options around additional connected services, which when disabled will prevent that pop-up. Let me see if I can find the setting again quickly...
    • DivideByZero's avatar
      DivideByZero
      Copper Contributor

      Please forgive the copy/paste formatting, but try this - it solved the privacy pop-up for us.

      Microsoft Office 2016/First Run
      Policy Setting
      Disable First Run Movie Enabled
      Disable Office First Run on application boot Enabled

      Microsoft Office 2016/Privacy/Trust Center
      Policy Setting
      Allow the use of additional optional connected experiences in Office Disabled
      Allow the use of connected experiences in Office Enabled
      Allow the use of connected experiences in Office that analyze content Enabled
      Allow the use of connected experiences in Office that download online content Enabled
      Allow users to include screenshots and attachments when they submit feedback to Microsoft Disabled
      Allow users to receive and respond to in-product surveys from Microsoft Disabled
      Allow users to submit feedback to Microsoft Disabled
      Configure the level of client software diagnostic data sent by Office to Microsoft Enabled
      Type of diagnostic data: Neither

      Policy Setting
      Disable Opt-in Wizard on first run Enabled
      Enable Customer Experience Improvement Program Disabled
      Send personal information Disabled

       

      Though if you just want the privacy one, I think the one you are looking for is this one:

      Allow the use of additional optional connected experiences in Office Disabled

      We have an active ticket with MS Support to see if we can find why Word will no longer do SSO. But given your findings with MS "Support" I am not holding much hope any longer.

    • WelkasWorld's avatar
      WelkasWorld
      Brass Contributor

      Sorry to hear that. I actually haven't really come across anything that haven't been mentioned here that might help. 
      Any update from Microsoft since by any chance?

      • koenwalraevens's avatar
        koenwalraevens
        Copper Contributor

        It was mysteriously resolved by itself until 2 weeks ago. We have the same issue again. I've opened a new case with microsoft premium support and we've had 2 calls of 30 minutes, during which they got logs (stepsrecorder and fiddler). Haven't heard from them since last week. I'm going to ask for an update today.

  • advkk's avatar
    advkk
    Copper Contributor
    Hello,
    I have similar issue. SSO is not working for Teams, Outlook, Edge and other apps.
    In Event Log there is either error:
    AADSTS9002341: User is required to permit SSO
    or
    Description: AADSTS70043: The refresh token has expired or is invalid due to sign-in frequency checks by conditional access.

    But PRT is beeing issued, I've checked it via dsregcmd.
    • WelkasWorld's avatar
      WelkasWorld
      Brass Contributor

      Hi,

      Have you tried dropping the device off the domain and re-joining?
      See details below.

      A lot of people are currently experiencing a similar issue with SSO.
      It might be due to the fact that Microsoft is after changing the Windows Single sign on experience. In order to be compliant with the Digital Markets Act (DMA) within the European Economic Area (EEA), Microsoft has started altering how Windows operates to align with global regulations like the DMA. One significant change involves the sign-in process for apps on Windows.
      If you look at the sign-in logs for the users and see error code 9002341 or similar with the failure reason being "User is required to permit SSO", have a read through my blog post below.

      https://www.welkasworld.com/post/tackling-mfa-fatigue-a-solution-for-sign-in-error-code-9002341-user-is-required-to-permit-sso

      Hopefully this helps.

      • advkk's avatar
        advkk
        Copper Contributor

        Hi WelkasWorld 
        I came across your article when searching for my problem, but solution described didn't really help that day.

        Now when I use this link I don't see your post - it opens blank page, can you check it? I'd like to double check your solution.

Resources