question

Abdullah Sohail avatar image
Abdullah Sohail asked

Kindly provide the documentation for group policy. Specifically all possible values for keys like "Action","Effect",etc.,Kindly provide the documentation for group policy. Specifically list down all the possible values for keys like

1 comment
10 |1200

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

Abdullah Sohail avatar image Abdullah Sohail commented ·

Btw, sorry for the repeated statement !

0 Likes 0 ·

1 Answer

·
Seth Du avatar image
Seth Du answered

Please refer to the document on API Access Policy - PlayFab | Microsoft Docs. In addition, it is also recommended to retrieve the default API Policy via GetPolicy API call. In terms of Entity Policy, you may navigate to [Game Manager] -> [Title Settings] -> [API Feature] to check the format of default Policy.

5 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.

Abdullah Sohail avatar image Abdullah Sohail commented ·
@SethDu

I had read the document in you provided link. It explains some of the values only like what will "*" do, what will "Deny" do, etc. But it doesn't contains all possible values of keys. Can you guide me about this ? Thanks

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Abdullah Sohail commented ·

Sure. If it is API policy, the action will only be "*" and with Effect "Allow" or "Deny" to modify the API access.

While, if it is Entity policy(including Group policy), the action can be "Read", "Write" or "*", and the Effect is the same to modify a specific behavior of an Entity data access.

1 Like 1 ·
Abdullah Sohail avatar image Abdullah Sohail Seth Du ♦ commented ·
{
    "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"
    }
  },

Thank you so much, it clears a lot of issues. The last thing i wanna ask here is the difference between these three policies. its confusing as each policy comment is same.

0 Likes 0 ·
Show more comments
Show more comments

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.