question

Pranil GC avatar image
Pranil GC asked

Is there a way to revoke a player ban from script in playfab?

So i am trying to revoke the ban for all the players in a specific segment ? Is there anyway to do that ?

Player Data
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

Yes, please navigate to [Game Manager] -> [Automation] -> [Scheduled Tasks] and create a task, which configures “Run actions on each player in a segment”. Select the segment and Run a cloud script/azure function you have defined, where RevokeBans API is called.

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.

Pranil GC avatar image Pranil GC commented ·

Can you tell me how to use the RevokeBans API ?

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Pranil GC commented ·
  • RevokeBans will need the Ban ID from a player. each ban will have a unique ID with details inside. You may call Admin API GetUserBans to get the required ID first.
  • RevokeAllBansForUser will revoke all bans for a player, simply input the playfabId in the request.
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.