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 Muhammad Roshaan Tariq · May 31, 2019 at 01:48 PM · Player DatadataTitle DataShared Group Data

Data Access of Other Players

Hi, I am building a multiplayer game in which at certain point I want to update the data of other players even if they are not present in the game at that time. Is there anyway I can do this?

Or If not, then can I create some custom table with custom attributes on Playfab where I can store the sharable data for players to access and update? And when there's a update in that table all players update themselve with new data

Comment
Roshaan

People who like this

1 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 SethDu · Jun 03, 2019 at 02:35 AM

Sorry for previous answer. I seem to have misunderstood your needs.

It is feasible to query and update other players data. First you should know the usage of Player Data: https://docs.microsoft.com/en-us/gaming/playfab/features/data/playerdata/. As the player data, including player read-only data and player internal data, has permission configurations, you can choose any of them as public so that those data can be seen by other users via GetUserData Client API call:

Then, to change other Player's Player Data, you can implement functions in Cloud Script and the action can be easily done by Server APIs. However, be aware that before the change is performed, verification process is necessary so that it will ensure the changes on target player's player data is valid.

If you have seen the description of Title Data in my previous reply, please be aware that Title Data cannot be used to update things on a per-client basis.


snipaste-2019-06-03-14-50-17.png (21.1 kB)
Comment

People who like this

0 Show 8 · 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
avatar image Muhammad Roshaan Tariq · Jun 03, 2019 at 12:40 PM 0
Share
@Brendan @SethDu
avatar image Muhammad Roshaan Tariq · Jun 04, 2019 at 08:54 AM 0
Share

How can I call the cloud code of one player from another player? Is there any API function?

avatar image SethDu ♦ Muhammad Roshaan Tariq · Jun 06, 2019 at 09:26 AM 0
Share

Just use Server API GetUserData: https://docs.microsoft.com/en-us/rest/api/playfab/server/player-data-management/getuserdata?view=playfab-rest

avatar image Muhammad Roshaan Tariq SethDu ♦ · Jun 06, 2019 at 09:15 PM 0
Share

If you are providing the REST API for getting data and updating other's player data then why I need the cloud script for?

Show more comments

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

    Writable Shared Title Data 1 Answer

    KeyNotFoundException: The given key was not present in the dictionary. 1 Answer

    Non-sharded title data or query of player data? 1 Answer

    Using playfab for a calendar in Unity 1 Answer

    Fast/Instant Title Data Update 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