Problem
When importing a CAS/SAML classlist, if a username in the CSV has a student number that matches an existing user in the system, the import rejects the row with "This student number already exists in the system." This prevents linking a CAS/SAML identity to a user who was previously created via a different auth method (e.g. local ComPAIR account or LTI).
Expected Behaviour
If the existing user does not yet have a third-party auth link of the same type (CAS or SAML), the import should link the new identity to that user and enrol them in the course instead of rejecting.
Problem
When importing a CAS/SAML classlist, if a username in the CSV has a student number that matches an existing user in the system, the import rejects the row with "This student number already exists in the system." This prevents linking a CAS/SAML identity to a user who was previously created via a different auth method (e.g. local ComPAIR account or LTI).
Expected Behaviour
If the existing user does not yet have a third-party auth link of the same type (CAS or SAML), the import should link the new identity to that user and enrol them in the course instead of rejecting.