question

rknoesel avatar image
rknoesel asked

List of players with active bans?

We've run into an issue where occasionally new players will get an IP-based ban because of old permanent bans we made in the past on dynamic IP addresses.

The best solution for us would be to run a script that simply removes all IP-based bans of a certain age, or changes their duration to something shorter (e.g. one month).

Here are the problems: The only way I see to show all bans is to use the PlayFab dashboard 'Players' tab to run a query such as "BannedUntil >= datetime(2022-06-01)".

Problem #1: The query result seems to be limited to 100 entries, but we have about 300 bans total, and there's no 'next page' functionality. Also, the query does not distinguish between active and inactive bans, so even if we revoked bans, this list would not get any shorter.

Problem #2: When viewing a Player's bans, the list does not show the IP address, so we have no idea which is which. There's also no way to edit an existing ban.

To summarize, we currently have lots of old IP-based bans in our game that are preventing some new users from playing our game, resulting in 1-star reviews. Is it possible to do anything about this?

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

·
Xiao Zha avatar image
Xiao Zha answered

You can Run a Scheduled Task in all player segment to make each player to execute a cloud script. In the cloud script, you can use GetUserBans API to obtain the BanId, IP Address, Reason and etc., and then you can decide whether you need to use RevokeBans API with BanID to unban the player or use BanUsers API to set the ban duration according to the Reason or the active status.

In addition, to maintain a list of ban players in the future, please consider implement segmentation in your title. You can call AddPlayerTag every time you ban a player so that a specific tag you defined will be attached to that player. In the segmentation, you need to config a filter rule like “tags” “is” “banned(you defined)” to categorize banned users. Then call GetPlayersInSegment to retrieve your ban list.

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.