question

usachovdailymagic avatar image
usachovdailymagic asked

Permissions of reading in PlayerData(Title)

Is it possible to forbid reading private field from PlayerData(title) for not authentification owner. For example this code:

var ScoreData = server.GetUserData({
PlayFabId: ["dhsadhjsadsa","dshdkashdjksa","dsjakdlsad"],
Keys: ["Score"]
});

I can access private fields of the other players, Is it possible to hide some fileds from reading other players.

Picture fields for example:

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

The Private setting for User Data and User Read Only Data makes it so that the data in question cannot be queried by the Client API for any user other than the owner. However, the Server API will always be able to read the data - otherwise, you would not be able to use it in Cloud Script or custom servers.

1 comment
10 |1200

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

usachovdailymagic avatar image usachovdailymagic commented ·

Thanks. I understand now!

0 Likes 0 ·

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.