We have a list of master player ids and now we ran into the requirement where we need to access the title related objects for these players.
I tried to do this by using an entity key with "master_player_account" which looks something like this:
PlayFabDataAPI.GetObjects(new GetObjectsRequest { Entity = new EntityKey { Id = playerId, Type = "master_player_account" }, EscapeObject = true }, OnSuccess, OnError);
This leads to a not authorized error:
Which I tried to solve by modifying the Entity Global Title Policy by adding this:
{ "Action": "*", "Effect": "Allow", "Resource": "pfrn:data--*!*/Object/GetObjects*", "Principal": "*", "Comment": "Everyone can edit storage", "Condition": { "CallingEntityType": "master_player_account" } }
I was troubleshooting here because I had a hard time finding a proper documentation for this - but the authorization still failed.
An alternative solution that would also work for would be to retrieve the title player ids with the master player id and then using these to access the storage. But in case this is possible I wasn't able to find how.
Thanks for any advice in advance!