How to get current logged username in HoloLens

Hello,

For one of my applications I would like to get the name of the currently logged user in the HoloLens by code, I have been testing with a few different ways of achieving this (the UWP default ways of getting the username) but nothing seem to work.

Has somebody managed to get this information or knows how to do it?

Thank you

Hey,

For these types of Windows specific questions, I strongly recommend you join the Microsoft HoloDevelopers Slack channel via this link: https://holodevelopersslack.azurewebsites.net/ and post your questions there.

I did a quick search on Slack and found this thread: Slack

For basic Windows 10 user info, they referenced this SO post.

For more advanced log-in scenarios, they referenced this Microsoft documentation page and this in-app purchase sample.

I hope this helps.

Thanks, I will have a look at the Slack Channel to see if this solution works or if I find another one