כיצד להציג את השם הפרטי של המשתמש כשם משתמש

I don’t know the answer but I’m wondering what would happend when there is several marias or johns? Username must be unique.