Documentation

GetGlobalPolicy

Gets the global title access policy

Request Details

Retrieves the title access policy that is used before the profile's policy is inspected during a request. If never customized this will return the default starter policy built by PlayFab.

GetGlobalPolicyRequest
Request Properties
POST https://{{TitleID}}.playfabapi.com/Profile/GetGlobalPolicy
    Content-Type: application/json
{}
        

Response Details

GetGlobalPolicyResponse
Result Properties
Permissions List<EntityPermissionStatement>

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

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "Permissions": [
      {
        "Resource": "pfrn:data--title_player_account!90901000/Profile/SomethingCool",
        "Action": "*",
        "Effect": "Allow",
        "Principal": {
          "ChildOf": {
            "EntityType": "[SELF]"
          }
        },
        "Comment": "An example policy"
      }
    ]
  }
}

Authentication

EntityToken

Possible Error Codes

Name Code
NotAuthorized 1089