I have a requirement where I need to get a user from User Profile Store in SharePoint but the only thing I have available is Email. This field is unique in HR system.

How can I pull user just by email? One option I thought was with Query but then I have 8000 plus users and that might take a while to run.

Looking for a way to do this in a efficient way. Any help is highly appreciated!!

Thanks