The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Developing Universal Windows apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

[UWP]UWP Get Unique Id for user RRS feed

  • Question

  • I need unique id to save user purchases to my database. i dont need device id because if user change microsoft store account then device id will be same to previus.

    I want to a leaderboard to most users purchases but i dont know him id if user change own device  or microsfot store account


    Tuesday, November 20, 2018 5:56 PM


  • Hi,

    I noticed you have asked the same question on Stack Overflow. And there is a teammate has already replied to you.

    In general, the user of different accounts should not be the same person. So the general account can be part of a unique id.

    And if his solution about using storecontext and store account could not solve your problem, I’m afraid you might need to combine some information to create a specific unique ID.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    • Marked as answer by OMANSAK Wednesday, September 4, 2019 8:05 AM
    Wednesday, November 21, 2018 9:52 AM