question

Ruben Pascual Blanco avatar image
Ruben Pascual Blanco asked

Cannot disable custom id login ("invalid action *")

I have added this to the API policy as I saw in a guide here:

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

But it just prints an error "could not save policty, invalid action * in statement". What is it about? and is there some less complicated way to edit policy than just typing it manually like this?

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

·
Simon Cui avatar image
Simon Cui answered

Hi, I did a test with your policy Json code and it worked well using UpdatePolicy in Postman. Currently, we only recommend modifying policy through UpdatePolicy API. May I know if you are using this API to modify policy? It would be kind if you provide some screenshots showing how you modify it and the error message. I found a similar post here: https://community.playfab.com/questions/41744/error-updating-global-title-policy-failed-to-save.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.

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.