Federated identity management using Active Directory Federation Services
Hi Jay,
A change in the OIDC sub value should be investigated carefully, because AD FS exposes sub as a pairwise subject identifier. Microsoft’s AD FS documentation shows that the OIDC discovery document advertises subject_types_supported as pairwise and includes sub as a supported ID-token claim.
Microsoft Learn
Since you have confirmed that the client ID and the relevant AD user attributes have not changed, I would not assume that the patch itself is intentionally regenerating the sub value. I would first compare the complete OIDC request and token before and after patching.
In particular, I would check:
Client/application configuration – confirm that the same AD FS application/client ID and relying-party configuration are being used.
OIDC request parameters – compare the client_id, issuer, redirect URI and other relevant parameters from the working and failing requests.
AD FS configuration/claim rules – verify that no claim-rule or application configuration changed during the patching/maintenance window.
User identity attributes – compare the underlying AD object and the identifier used by the AD FS configuration, rather than only checking UPN/display name.
AD FS logs/tracing – capture a token from the same user and same client before/after the change, then correlate the request with the AD FS event logs.
I would also recommend checking the discovery document from the same AD FS endpoint to confirm that the application is still using the expected OIDC configuration. Microsoft documents that AD FS generates the ID token after authentication and claim processing.
Microsoft Learn
If the same user, same client ID, same AD FS configuration and same relevant identity attributes are confirmed, but the sub value changed immediately after the Windows updates, that would be a good case to investigate specifically as a possible AD FS regression. At that point, the exact AD FS version/build, installed KBs, token samples (with sensitive values redacted), and relevant AD FS event logs would be useful for Microsoft Support to investigate.
I would avoid using a mutable value such as UPN or email as the application's permanent user key. Microsoft recommends using an immutable identifier for reliably identifying users.