Help me To code getuser() with example

How can i specify that i only need loginEmail