Documentation

SetGlobalPolicy

Sets the global title access policy

Request Details

Updates the title access policy that is used before the profile's policy is inspected during a request. Policies are compiled and cached for several minutes so an update here may not be reflected in behavior for a short time.

SetGlobalPolicyRequest
Request Properties
Permissions List<EntityPermissionStatement>

The permissions that govern access to all entities under this title or namespace.

POST https://{{TitleID}}.playfabapi.com/Profile/SetGlobalPolicy
    Content-Type: application/json
{
  "Permissions": [
    {
      "Resource": "pfrn:data--title_player_account!90901000/Profile/SomethingCool",
      "Action": "*",
      "Effect": "Allow",
      "Principal": {
        "ChildOf": {
          "EntityType": "[SELF]"
        }
      },
      "Comment": "An example policy"
    }
  ]
}
        

Response Details

SetGlobalPolicyResponse
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {}
}

Authentication

EntityToken

Possible Error Codes

Name Code
NotAuthorized 1089