How can I get Microsoft account user id?

In my game for wp8 and ws8.1 to save the progress of the user uses his device ID. Now with the new Unity 4.5.3 I need to combine the two projects into one and can’t use device id no more. Is it possible to get microsoft account ID on wp and ws?

Hi, it’s possible, but you’ll need to ask the user to explicitly approve it. You’ll need to use Microsoft Live SDK to provide the login screen.

Is there any other way to sync wp and ws devices without asking user to login?He is always already logged in the OS isn’t he?

If he’s logged into OS, it will just ask the user permission if he allows the app to use that information. It will only ask to login if he’s not logged into OS.

ok, thank you