You can do this, but you must do part of the work yourself.
You’ll need the management API and search for the user:
then you can send an email or display the username (warning, consider the security implications of what you are doing, you must design this process with security in mind).
John