LDAP login in Frappe: Multiple users share same email, can we use Employee ID as User ID?

Hi everyone,
I’m planning to implement LDAP authentication in Frappe.

In my case, multiple employees can have the same email ID (shared/group email), so using email as a unique identifier won’t work.

I want to maintain users using Employee ID instead of email.
But in Frappe, by default the User doctype uses email as the unique key.

My questions:

  1. Is it safe to change Frappe to use emp_id as the user identifier instead of email?

  2. Will it break anything like:

    • login/auth

    • password reset

    • email notifications

    • user permissions / assignments

    • integrations

  3. What is the best recommended approach to achieve this with LDAP?

If anyone has implemented LDAP with similar constraints, please guide me.
Thanks in advance!