How to access the Username?

Hello,

I have a problem accessing the username! I can call up .getNickname() method of UserManager, and then I get my username! But that’s only if all my profile information are empty! If I enter my Name and Surname for example, then the same method will return my name!

So, is there a way to access the username? I’ve searched but I couldn’t find it!

Thanks