How to get the user name using a Microsoft user id?

aspetrece

New Member
Am working on a windows store javascript application. I have used the microsoft login authentication from azure as follows.\[code\]client.login("microsoftaccount").done(function (results) {;userId = results.userId;refreshTodoItems();var message = "You are now logged in as: " + userId;var dialog = new Windows.UI.Popups.MessageDialog(message);dialog.showAsync().done(complete);}\[/code\]Am able to retreive the userid such as "Microsoftaccount:c2892313bla...."How am I supposed to retreive the associated UserName for that Microsoft account ID?
 
Back
Top