Get Username from Smart Client Through MIP Plugin

Hi,

I will like to know is there any way that we can get the username from the Smart Client via our own MIP plugin?

User will first login to the Milestones Smart Client and from there, our plugin can retrieve the username used for the access.

Thank you.

I found this snippet in the Chat sample

LoginSettings ls = LoginSettingsCache.GetLoginSettings(EnvironmentManager.Instance.MasterSite);
_myName = ls.UserName;

Thanks Bo! Great help!