question

phillipphan avatar image
phillipphan asked

Permission problem when try to list member of a group

Hi,

I'm trying to view all members of a group using:

PlayFab.PlayFabEntityAPI.ListGroupMembers

And the code return this error:

/Group/ListGroupMembers: The claim was not allowed to perform the requested action based on the entity's access policy. Policy comment: By default, all requests are denied. If you expected this request to succeed, you may be missing a policy. See the permissions APIs in PlayFab's Admin Api to add a permission.

How do I enable permission for listing group members?

Thanks

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

There can be 2 reasons.

  • The current player is requesting a group which he is not a member of. It is not supported by default.
  • There can be changes in your ENTITY GLOBAL TITLE POLICY so that forbidding this API request. You can navigate to [Game Manager] -> [Settings] -> [API Features] -> [ENTITY GLOBAL TITLE POLICY]. Create a new title to see the differences if you are not sure.

In terms of the first reason, if you do need this requirement, you can edit entity policy to grant the permission of corresponding actions. For more details, please see https://community.playfab.com/questions/18487/listgroupmembers-for-nonmember.html

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.