locked
is there a way to uniquely identify the user

    Question

  • I am planning an app with in app consumable purchase which can be used only by the purchased user. It shouldn't work if that consumable is used by another user who hasn't purchased it.

    Is there any way to uniquely identify the purchased user?

    I couldn't find anything unique in Windows.System.UserProfile.UserInformation

    Friday, March 21, 2014 4:49 AM

Answers

All replies

  • Hi ner9G,

    Actually it is by design, think of the situation, parents by the app and create a account for child to play. There is no way to identify which user is the correct one to purchase your app.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, March 21, 2014 11:24 AM
    Moderator
  • Sorry I was not clear with my question.

    What I want is a unique id for the app user. Not the user signed in the store who makes the purchase.

    If parents buy the consumable for the child, I want a unique id for the child account.

    My app is a business app where the business owner buys devices for each employee and creates account for each employee just like parent child.  The business owner buys consumables(files) for each employee device from windows store. 

    If there is no way to identify each employee account uniquely then the single consumable can be used by all employee accounts.  Is there any other way to charge for each employee account the business owner uses.

     

    Friday, March 21, 2014 2:50 PM
  • It looks like the basic user ID has security restricted access:
    http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.authentication.onlineid.useridentity.id.aspx


    So if you don't have access, it seems you would have to create a login experience, or use an identity provider:

    http://msdn.microsoft.com/en-us/library/windows/apps/dn448950.aspx
    http://msdn.microsoft.com/en-us/library/windows/apps/jj856915.aspx

    Wednesday, March 26, 2014 5:06 PM