Recover User Objectid by using Emailid for multiple tenants

Susil Maharana (HCL TECHNOLOGIES)
1
Reputation point
we have a form which allows logged in users to submit the details with firstname, lastname, emailid, phonenumber, country etc. along with userObjectid which is obtained through a graph call. Because of a bug in the code around 90k+ data were submitted without objectId which renders those useless. We are trying to recover the objectids of each of those records by using their emailids which are of different tenants. We have the emailIds of all those users. Please suggest the best way to recover the objectids for those records.