Properly store the mapping of external ID to Matrix ID for CAS users.