Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Amar Chitimalli · Nov 20, 2020 at 07:59 AM · Player Data

Is there a way for a user to search another users profile using custom fields in the user data?

We are building a sports APP where we have users of different kind (Athletes and Fans). Currently we are storing a ton of custom data fields in the UserProfile (Name, Age, DOB, City, School, Grades, Sports and more .. ).. We want users to be able to search the entire database using custom query of these fields .. Lets say (Show me all the users in the APP, that splay Baseball, and are in NYC and have been active for last 1 week)..


I understand that PlayFab is not designed for this, but wondering what is the best way to design and architect a solution for this? We are mainly using PlayFab for Auth now, but we have a need for leaderboards, economy and more in the future. But storing data is PlayerTitleData is not going to help us achieve what we really want.

One of the solutions we are looking into is to save the data into CosmosDB and use custom cloud scripts to talk to CosmosDB and return the responses to the client, that way the client can only talk to PlayFab and not have to worry about connecting to CosmosDB, and also helps us secure the Data?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Citrus Yan · Nov 20, 2020 at 09:47 AM

In your case, yes, you’d need to use an external data store solution, such as CosmosDB you mentioned in question. And yes, CloudScript can serve as a secure proxy between the clients and your database, for that I’d suggest that you use the new PlayFab CloudScript using Azure Functions feature, which introduces few key improvements compared to the old CloudScript feature. Please let me know if you have any further questions.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    UserPrivateAccountInfo should not be sent when email is not available 1 Answer

    Server GetPlayerCombinedInfo to get also user internal data 1 Answer

    best practice for syncing player data 1 Answer

    Problem with Google login and Playfab 1 Answer

    Storing a text file in playfab for one title 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges