How can i validate email id in user?

I have a company, Company A. The user with the email address a@gmail.com has permission to access only Company A. I want to validate the user’s email field against all user documents globally to ensure uniqueness. Currently, when I enter an existing email ID, it only checks against the currently logged-in user’s email. How can I validate it against all users globally.i want to add a description to the field when an exitstng email id entered.

1 Like

Hi Nehala :grin: