I can't get Protected data with cloudcode

It was to easy to set protected data with cloud code. so I tried to get player’s Protected data with just c# code. It was not possible(It should but didn’t). So I am trying to get that data with cloud code and It does not working either. Is Protected data unreadable?

Hi @pawnundertheclown

The Cloud Save docs state that protected player data can be readable by the player Cloud Save Player Data.

Theres no reason why Cloud Code shouldn’t be able to retrieve a player’s protected data so if you’re able to provide a code snippet of your request client setup and usage then I can help to diagnose your issue.

Otherwise something along the lines of the following should work?

var response = await gameApiClient.CloudSaveData.GetProtectedItemsAsync(context, context.ServiceToken, context.ProjectId, playerId, new List<string> { "EXAMPLE_KEY" });