Hello,
I’m in the process of setting up the cloud save access policies for our project and am facing the following problem:
I want to deny the player any read or write access for most of the cloud save items and only allow read(or read and write) access for specific entries. How do i correctly define the resource path to the specific item i want to grant access to?
My access policy statements currently look like this:
{
"statements": [
{
"Sid": "deny-cloud-save-access",
"Effect": "Deny",
"Action": [
"*"
],
"Principal": "Player",
"Resource": "urn:ugs:cloud-save:/v1/data/projects/[ProjectID]/players/*"
},
{
"Sid": "allow-read-write-skin",
"Effect": "Allow",
"Action": [
"*"
],
"Principal": "Player",
"Resource": "urn:ugs:cloud-save:/v1/data/projects/[ProjectID]/players/*/items/KEY_TO_SPECIFIC_ITEM"
}
]
}
I also tried to specify the resource as:
"Resource": "urn:ugs:cloud-save:/v1/data/projects/[ProjectID]/players/*/items?keys=KEY_TO_SPECIFIC_ITEM"
Is there even a way to write a fine grained access policy that targets a specific entry in cloud save?
Thanks,
Chris