question

paromatt avatar image
paromatt asked

How can I get the age of the player with the age field stored on playfab database?

Hello everybody

We are trying to create a game where we want to know the age of the player for the leaderboard.

Can someone tell us how to get the age attribute of the player into the database and visible on the player info tab in our https://developer.playfab.com/ account?

Player Data
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

There is no built-in age field for players in PlayFab, so it cannot be part of the account record. You can store this information in the Player Data, but please be aware that age is actually considered sensitive information (and often an element of Personally Identifying Information) in many regions, so you need to be extremely careful with that data. It's usually better to ask only for an age range, since that's not PII by any definition we've seen. And that said, please be sure to consult with your own legal counsel on any data you are storing about players, as we cannot provide legal guidance on this.

Also though, storing data in an account - or player data - will not get that data into leaderboards. Bear in mind that you cannot query a leaderboard and then query across every player in that leaderboard to get all their info. That would cause your client to get delayed responses, and possibly be tenporarily blocked as the API call rate would likely be too high. Short bursts of a few API calls at once are fine, but titles should never be making sustained high-rate API calls in our core service without having been through a review with us. This is something we can enable on a title-by-title basis as part of a custom contract, but it is not part of our free tier.

We will be adding custom data to leaderboard entries later this quarter (which will be in our free tier), so that would be the way to store additional data with the player scores.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.