question

stop tryna get in my playfab lil bro avatar image
stop tryna get in my playfab lil bro asked

How do I get to the place where I can modify my API Policy?

Hello, my playfab title was recently spammed and I would like to figure out how to get to my API access policy so I can modify the permissions so you cannot loginwithcustomid.

apis
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

·
Infer Wang avatar image
Infer Wang answered

You can follow these steps: First, call GetPolicy and copy all statements and "PolicyVersion". Then, call UpdatePolicy, this is the request body:

 {
   "PolicyName": "ApiPolicy",
   "Statements": [
    
   ],
   "OverwritePolicy": true,
   "PolicyVersion": 8
 }

Paste the statements you copied from GetPolicy’s result.

And add this into the statement:

 {
   "Resource": "pfrn:api--/Client/LoginWithCustomID",
   "Action": "*",
   "Effect": "Deny",
   "Principal": "*",
   "Comment": "This statement disables request to LoginWithCustomID"
 }

Make sure "PolicyVersion” is same as the one in GetPolicy’s result. 6775-image.png 6764-image.png


image.png (118.5 KiB)
image.png (70.5 KiB)
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.