question

cartellonegerardo avatar image
cartellonegerardo asked

How to change APi policy so users can't create shared group data?

new PermissionStatement()
{
    Action = "*", 
    Comment = "Do not allow clients to create sharedgroups",
    Resource = "pfrn:api--/Client/CreateSharedGroupRequest", 
    Effect = EffectType.Deny,
    Principal = "*"
}

this is the code I tried, read the documenations on the policy : https://learn.microsoft.com/en-us/gaming/playfab/api-references/api-access-policy but there is something I'm clearly missing since my my policy doesn't work.

here people seem to say it's impossible but it's being a while maybe things have changed.

https://community.playfab.com/questions/25021/entity-api-permissions-how-to-forbid-creategroup-o.html

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

To deny the client access to CreateSharedGroup, you can try Statement below, it works in my test.

{
    "Resource": "pfrn:api--/Client/CreateSharedGroup",
    "Action": "*",
    "Effect": "Deny",
    "Principal": "*",
    "Comment": "Deny client access to CreateSharedGroup"
}
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.