Can I get username from email?

Can I set user’s username from their email addresses?
My university email address structure:
I want all user who will signup using emails/google login their username should be “u1234567” or “1234567”
I do not want give permission to user to set their username while sign up!

Is it possible?

The best way would be to configure some single sign on solution. You can search here to find them and see which one will work with your university systems.

If you’re using oauth then you might need to fork the plugin to enforce the username.


If your university has a SSO page which returns your email and password, then you can make it login with this.

1 Like