question

Mahnoor Naeem avatar image
Mahnoor Naeem asked

how to add permission to a group. I want all members to Change objects data. Please help

entities
10 |1200

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

1 Answer

·
Seth Du avatar image
Seth Du answered

I have just tested SetObjects and GetObjects and it seems all members are allowed to modify the Objects by default.

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

Mahnoor Naeem avatar image Mahnoor Naeem commented ·

Alright. Thankyou.

0 Likes 0 ·
Mahnoor Naeem avatar image Mahnoor Naeem commented ·

@SethDu I SetObjects and GetObjects are working fine for groups. What if I want to change group policy for all the groups. Like all the groups that are currently on playfab and all the groups that going to be created.

Please Help.

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Mahnoor Naeem commented ·

I found there were some issues when I was testing the Set/Get Objects policy and have filed a bug. Theoretically, if you need to change the policy of group, you can either add additional sentences in Policy tab of group, or in ENTITY GLOBAL TITLE POLICY (which is located at Game manager -> Settings -> API Features)

I will give some examples of its usage

  {
    "Action": "*",
    "Effect": "Deny",
    "Resource": "pfrn:group--*!*/Memebers/*",
    "Principal": 
    {
      "ChildOf": 
      {
        "EntityType": "title",
        "EntityId": "[replace here with your title id]"
      }
    },
    "Comment": "disallow all players in your title to check group memebers",
    "Condition": null
  },
// I was told the following policy can work but there should be issues because it doesn't work. 
  {
    "Action": "Write",
    "Effect": "Deny",
    "Resource": "pfrn:data--group!*/Objects/*",
    "Principal": "*",
    "Comment": "disallow the write permission of objects of all players",
    "Condition": null
  }
]

I will keep this thread updated if there is any feedback from our team.

0 Likes 0 ·

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.