Hello!
I need to allow players to join entity group, but can't find a way to do it.
At first I tried example from the blog https://api.playfab.com/blog/permission-policies to allow everything.
{ "Resource":"pfrn:api--*", "Principal":"*", "Effect":"Allow", "Action":"*", "Comment":"This will allow anyone to call anything" }
No success, even cannot be saved into json on the server.
Error:
Failed to save new global policy: Invalid action * in statement.
Then I found this thread: https://community.playfab.com/questions/18393/implementing-auto-accept-guildclan-policy-problem.html
and tried to use
{ "Resource":"pfrn:group--group!*/Applications/*", "Action":"Accept", "Effect":"Allow", "Principal":{"MemberOf":{"GroupId":"[THISENTITY]","RoleId":"*"}}, "Comment":"Allow people to auto-accept applications" }
It saved correctly in permission json on the server, but gave no effect.
Error:
The claim was not allowed to perform the requested action based on the entity's access policy. Policy comment: By default, all requests are denied. If you expected this request to succeed, you may be missing a policy
Maybe I missed some useful resources where I can see actual syntax of possible "Resource" and "Principal" parameters? All the other more or less clear but these two parameters work as a magic, I have no idea how to edit them to get what I need