Modify read-only or internal player data via CloudScript
Safely update read-only and internal PlayFab player data from CloudScript using server.UpdateUserInternalData with C# and JavaScript sample code.
Player data is accessible from CloudScript if you require it for your title.
For more information about using CloudScript, see CloudScript quickstart.
The C# Sample in this topic are written for the Unity SDK. The Unity SDK uses an event driven model to handle asynchronous tasks. To run the sample code using the C# SDK, you must modify the code to use an async Task model. Methods that must be modified have Async append to the method name in the signature. For example, SetObject in the Unity SDK becomes SetObjectAsync in the C# SDK. For more information, see Asynchronous programming with async and await.
Last modified on August 10, 2026
Related topics
Quickstart Player DataUsing CloudScript actions with PlayStreamCloudScriptUse player publisher data to reward multi-title playUsing publisher data