שינוי SSO עבור IDP חדש

We are transitioning our Single Sign-On (SSO) system due to a change in our database. We need to find the best way to link users to their existing forum accounts. Is it possible to backfill user IDs into the system so that users can still access their current accounts? If anyone has experience with this process, could you please share how you accomplished it?