Multiple accounts in SSO SAML issue

Hi all,
I have openedx version= maple.3 with tutor= 13.3.1
and face an issue with SSO SAML:

2023-04-18 12:06:55	2023-04-18 12:06:55,814 ERROR 24 [common.djangoapps.third_party_auth.pipeline] [user None] [ip****** ] - [Multiple_SSO_SAML_Accounts_Association_to_User] Error in saml multiple accounts association: User ID: ***, User Email: *****:,Provider ID: saml-nic, Exception: EnterpriseCustomerIdentityProvider matching query does not exist.
2023-04-18 12:06:55	Traceback (most recent call last):
2023-04-18 12:06:55	  File "/openedx/edx-platform/common/djangoapps/third_party_auth/", line 812, in associate_by_email_if_enterprise_user
2023-04-18 12:06:55	    enterprise_customer_user = is_enterprise_customer_user(current_provider.provider_id, current_user)
2023-04-18 12:06:55	  File "/openedx/edx-platform/common/djangoapps/third_party_auth/", line 94, in is_enterprise_customer_user
2023-04-18 12:06:55	    enterprise_idp = EnterpriseCustomerIdentityProvider.objects.get(provider_id=provider_id)
2023-04-18 12:06:55	  File "/openedx/venv/lib/python3.8/site-packages/django/db/models/", line 85, in manager_method
2023-04-18 12:06:55	    return getattr(self.get_queryset(), name)(*args, **kwargs)
2023-04-18 12:06:55	  File "/openedx/venv/lib/python3.8/site-packages/django/db/models/", line 435, in get
2023-04-18 12:06:55	    raise self.model.DoesNotExist(
2023-04-18 12:06:55	enterprise.models.EnterpriseCustomerIdentityProvider.DoesNotExist: EnterpriseCustomerIdentityProvider matching query does not exist.
2023-04-18 12:06:55	2023-04-18 12:06:55,844 INFO 24 [common.djangoapps.third_party_auth.pipeline] [user None] [ip *****] - [THIRD_PARTY_AUTH] User performed SSO and data was synchronized. Username: ****

This issue causes users to have multiple accounts in auth table, and the user tries many times to access the system. The table usersocialauth takes the last profile of the user and makes the relation.
Also, this issue causes users’ information spread between multiple profiles, for example, progress in the course … etc.

Note: I followed up steps in link below on configuring SAML:

Any support?

Any help please ?

Has anyone faced this issue?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.