Skip to content

Conversation

@sameenfatima78
Copy link
Member

@sameenfatima78 sameenfatima78 commented Nov 28, 2025

For SAP customers leveraging Auth0 for SSO , the UID value returned in the SAML response represents the Auth0 User ID, not the SAP User ID. However, SAP integrations require the SAP User ID to properly report learner activity and completions. To support this, these changes introduce logic to fetch the SAP User ID from UserSocialAuth records, using the relevant remote user ID attribute (the attribute that Auth0 returns as the SAP User ID).
This attribute name can be provided as a query parameter to the UserMapping API, which will then retrieve the correct ID.

Related work:

Note: These changes are made only to support existing SAP + Auth0 customers.
We cannot alter current learner UIDs because such changes would directly impact authentication and SSO flows. For new SAP customers using Auth0, the recommended approach is to configure the User ID attribute in SAMLProviderConfig to directly pass the SAP User ID attribute returned by Auth0.

JIRA:

Merge checklist:
Check off if complete or not applicable:

  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets

Copy link
Contributor

@sameeramin sameeramin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

@sameenfatima78 sameenfatima78 merged commit d476b60 into main Nov 28, 2025
6 of 8 checks passed
@sameenfatima78 sameenfatima78 deleted the sameen/ENT-10804 branch November 28, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants