I have an issue that I do not know how to fix and need immediate assistance.
I work at a college so will be talking about student accounts
User 1: Krillin Son (email: firstname.lastname@example.org)
User 2: KaioShin Son (email: email@example.com) _inactive as they are no longer a student and needed to change it so Krillin Son could use firstname.lastname@example.org account. User 2 is no longer in AD, Office 365 or Azure. This account is only in Moodle.
User 1 can login to Moodle via basic login with username kson and their password and get into their account. But when they try to login via the Microsoft SSO button with email email@example.com and their password. It will show User 2's account.
After investigating and going to Gear>Plugins>Local Plugins>Microsoft Office 365 Integration>Advanced>Manage User Connections. I noticed that User 2 is still showing a connections to email address firstname.lastname@example.org. I enabled the Match button on User 1 and User 2 clicked Unmatch for User 2. But when User 1 logs in with email@example.com it still shows User 2 account. From the Manage User Connection section I have no other changes I can make to remove User 2's connection to firstname.lastname@example.org
Any help would be great.