Hello. I created permissions as private while creating player data. But I'm trying to change it to make it readable to external users. Can I change only permissions to Public with cloud scripts?
Hello. I created permissions as private while creating player data. But I'm trying to change it to make it readable to external users. Can I change only permissions to Public with cloud scripts?
Yes, you can change the permissions of player data to “Public” using CloudScrip via API UpdateUserData. For more info, you can refer to the example code below:
handlers.updateUserDataPermission = function (args, context) {
var UpdateUserDataRequest = {
"PlayFabId": "xxxxxxxxxx",
"Data": {
// your data goes here
},
"Permission": "Public"
};
server.UpdateUserData(UpdateUserDataRequest);
}
If I do as you said, can I change only permission without changing the existing value?
2 People are following this question.