I'm having the darndest time getting SSO to work O...
# microsoft-365
s
I'm having the darndest time getting SSO to work Office 365. I've reviewed this article https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-sso-quick-start so many times and everything looks good. I'm not doing hybrid, at the moment. I'm just trying to test with myapps.microsoft.com, but have also tried adding /domain.microsoft.com and just https://myapps.microsoft.com/userdomain.com, but not having much luck. Every time it just prompts for username and password. Been googling this for days now and I'm spinning my wheels. Anyone have any good troubleshooting steps to take in order to better diagnose?
Doing password hash and confirmed signle sign on is enabled on Entra Connect Sync portal. Using the latest version of Connect Sync.
s
The guide you posted is for Seamless SSO. Is that the method you're trying to use, or are you using Hybrid joining as well? Can you also let us know what platform you're doing this on, Citrix or VMware, or other?
s
might be on to something, two different environments where I've started over on a net new profile and now it seems to be working
for the record. My target platforms are Citrix, where machines are joined to the domain and usually we have Entra ID Connect Sync with password hash and SSO enabled
s
Just an FYI, there are two primary modes for Azure SSO. The first is Seamless, which is older but works great with VDI platforms, and doesn't require hybrid domain joining. Or there's the newer method that uses Hybrid Domain Joined VDI with SSO PRT (Primary Refresh Tokens) as the method. I've got a post and video here if it helps: https://www.stephenwagner.com/2022/03/06/microsoft-azure-ad-sso-vdi/ Also have this post covering PRTS and HAADJ: https://www.stephenwagner.com/2023/07/23/hybrid-azure-ad-join-azure-ad-connect-vdi/
s
thanks for that
also finding these Chrome/Edge GPOs help, especially when testing on existing profiles, as it lets you use incognito, so you can better test without existing cookies, etc... https://github.com/MicrosoftDocs/azure-docs/issues/58223
@Stephen Daniel Wagner you ever see the issue where upon new user sign in and new profile creation, where if you open one of the office apps, it prompts for computer activation, but if you close out of the activation prompt and the office program, and re-open it, it activates fine?
s
@Steve Noel, I don't think so, but it's possible. Keep in mind that the cred windows aren't always a 100%, and it's not easy to tell if it's due to prompting for Office app sign-in, activation, or both (they are two separate processes). If using Azure PRTs, there's a chance the PRT token hasn't been created yet, if you're getting prompted, close and re-open with an additional prompt. There might be a few other scenarios that also apply.
s
i have the outlook profiels being auto created by the "Automatically configure profile based on Active Directory Primary SMTP address (one-time only)" GPO, so the first couple prompts are now gone, so basically on first run it gives these two. After clicking "sign in" on the first one, you get the 'activate office' prompt
If i close that activation prompt, it errors out outlook, and then i just re launch outlook, and it works fine
s
Do you have it set to auto login? Also, when you sign in, does it require an MFA? If MFA is required, that's probably what is triggering the sign on.
s
There's autodiscover setup and all that. Is there a specific auto login GPO? There's no MFA prompt at all, if i walk through it manually.
s
There's a GPO for auto login with federated credentials. I noticed this signs in, even if not using ADFS.
s
ah, i didn't set that one, thought it was ADFS specific
let me try that quick
doesn't look like that's working, same behavior as before, confirmed the reg key for that setting is getting populated
s
Is this on persistent or non persistent?
s
non
Ill have them double check the CA pols to make sure nothing is getting blocked there
i do recall there is a separate checkbox for office desktop apps and activation
also, if your not doing any hybrid join or anything like that, shouldn't dsregcmd /status still show you the SSO state?
or tenant details...
s
If you're using non-persistent, are you making sure that after changing settings the GPOs, you're accounting for the GPO cache from when you provisioned? For example, if using Horizon, GPOs are cached during ClonePrep when provisioning a snapshot. If you change any GPOs, you need to trigger cloneprep to run again for domain join and GPO cache (usually done by taking another snapshot and pushing from the base)
Are you using PRT with SSO, or what are you using to get it to log on?
s
no, no hybrid join or anything, just SSO
and shared computer activation
Citrix env - PVS
s
when you say SSO, do you mean Azure Seamless SSO than if you're not using Azure PRT SSO?
s
correct, the entra connect SSO checkbox, iwth password hash
s
If you're using Seamless SSO, have you fully configured it? Or only done the check box?
s
waiting to get more details on the full configuration of it, but it's enabled on the azure side, where it says seamless Sso enabled - yes. Need to confirm what accounts/ous/objects are being synced
s
Seamless SSO doesn't matter if the objects are being sync'ed or not, that's only Azure SSO with PRT. If you're choosing to use Seamless SSO you need to fully configure it, checking the box isn't enough
s
And you've configured all the intranet zones for the GPOs for the clients for it to work?
s
yes sir, and that enable script one, and the https one
s
And the GPOs were probably cached in your base image during provisioning?
If it's not working, then starts working, I'm wondering if the GPOs are dated that are cached during provisioning
s
i believe most of them are user settings
it's very replicated, always prompts on first run, and you don't have to fill anything out, just close that prompt out, outlook throws an error and says you need to close, it closes, then you just reopen outlook and it all works
s
Is the Office identity key in the registry persisting across sessions? It should be gettting deleted.
s
right now i'm just starting off with net new profiles, so basically it's like the first time the user logs in
those files do get populated when i open outlook for the 2nd time
or if i manually enter the creds in on the first prompt
i'll double check the Condtional Access pols tomorrow, and confirm some of the other entra connect settings
s
If the VDI isn't hybrid domain joined, you won't be able to do much with conditional access policies.
s
You can still control access to office 365 from it
ended up opening a ticket with Microsoft and they suggested this dword value of 1 "DisableOneAuth" in HKCU\Software\Microsoft\Office\16.0\Common\Identity. This worked. Tried googling that and there isn't much out there.