question

Wladyslaw Jewloszewicz avatar image
Wladyslaw Jewloszewicz asked

How to restore the original API Policy?

apis
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Wladyslaw Jewloszewicz avatar image Wladyslaw Jewloszewicz commented ·

I accidentally replaced the original api policy instead of adding a new rule. After that, in the project settings, there is an empty api policy window and there is no way to roll back.


0 Likes 0 ·
Wladyslaw Jewloszewicz avatar image Wladyslaw Jewloszewicz Wladyslaw Jewloszewicz commented ·

..........

0 Likes 0 ·
screenshot-6.png (10.0 KiB)

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

Here is the default policy, you can put it to your title’s policy. Please replace the EntityId with your title’s info.

[
  {
    "Action": "*",
    "Effect": "Allow",
    "Resource": "*--*",
    "Principal": {
      "ChildOf": {
        "EntityType": "namespace",
        "EntityId": "xxxxxxxxxxxxxxx"
      }
    },
    "Comment": "The default allow title in namespace full access",
    "Condition": {
      "CallingEntityType": "title"
    }
  },
  {
    "Action": "*",
    "Effect": "Allow",
    "Resource": "pfrn:data--*![SELF]/Profile/*",
    "Principal": "[SELF]",
    "Comment": "The default allow profile self access",
    "Condition": null
  },
  {
    "Action": "*",
    "Effect": "Allow",
    "Resource": "pfrn:data--*![SELF]/Profile/*",
    "Principal": {
      "ChildOf": {
        "EntityType": "[SELF]"
      }
    },
    "Comment": "The default allow profile child access",
    "Condition": null
  },
  {
    "Action": "Write",
    "Effect": "Deny",
    "Resource": "pfrn:data--*!*/Profile/Statistics/*",
    "Principal": "*",
    "Comment": "Only title can edit user statistics",
    "Condition": {
      "CallingEntityType": "title_player_account"
    }
  },
  {
    "Action": "Write",
    "Effect": "Deny",
    "Resource": "pfrn:data--*!*/Profile/Statistics/*",
    "Principal": "*",
    "Comment": "Only title can edit user statistics",
    "Condition": {
      "CallingEntityType": "character"
    }
  },
  {
    "Action": "Write",
    "Effect": "Deny",
    "Resource": "pfrn:data--*!*/Profile/Statistics/*",
    "Principal": "*",
    "Comment": "Only title can edit user statistics",
    "Condition": {
      "CallingEntityType": "master_player_account"
    }
  },
  {
    "Action": "Write",
    "Effect": "Deny",
    "Resource": "pfrn:data--group!*/Profile/Statistics/*",
    "Principal": {
      "MemberOf": {
        "RoleId": "*"
      }
    },
    "Comment": "Only title can edit group statistics",
    "Condition": null
  },
  {
    "Action": "LobbyServerFull",
    "Effect": "Allow",
    "Resource": "pfrn:data--game_server!*/Lobby/Server/*",
    "Principal": {
      "ChildOf": {
        "EntityType": "title",
        "EntityId": "xxxxx"
      }
    },
    "Comment": "The Default allow title full Lobby server functionality",
    "Condition": {
      "CallingEntityType": "game_server"
    }
  }
]

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.