api-policy commands don’t accept --output table.
Add statements
Read the current policy and its version:policy.json denies the Server API’s
DeleteCharacterFromUser to every caller:
Resourceispfrn:api--and an API path, orpfrn:api--*for every API.Actionis*, the only value PlayFab accepts.EffectisAlloworDeny.Principalis*to match every caller.Commentis optional text for your own records.ApiConditionsis optional, and sets conditions such as{ "HasSignatureOrEncryption": "True" }, which takesAny,True, orFalse.
ApiConditions, is an error, because dropping it could widen what the statement allows.
PlayFab’s API access policy
page describes each field, and shows the default policy that allows every API.
Then add the statements, passing the version that get returned:
Replace the policy
--overwrite replaces the whole policy with the statements you pass, and discards every
statement you leave out. The CLI can’t restore the previous policy, so save the output
of get first.--overwrite needs --confirm, and the title named with --playfab-title-id on the same
command. It refuses a title from XBOX_PLAYFAB_TITLE_ID or saved context, even with
--confirm, and prints the command to run instead:
