question

carson avatar image
carson asked

Managing SharedGroup Lifespans

Is there any way to set a lifespan on SharedGroups? I can see there are methods for manual deletion (via API and the online dashboard), but was wondering if there was a "catch-all" of sorts to prevent them from piling up. Will they exist forever if left untouched?

apisShared Group 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

Shared Group will exist forever. In the current implementation, There are no limits on creating Shared Group. However, it is very important to restrict creations to avoid data redundancy of your title.

My suggestion is to manage the Shared Group Creation completely on the server side, for example, via Cloud Script, and deny the Client API CreateSharedGroup via editing API policy. You should also keep a copy of Group ID (In Player Read-Only Data) for each member in the Shared Group so that when the membership changes, you may edit this value for tracking. By this method, you may add additional verification part in function and control the total number of Shared Group that a player can create. Of course, APIs like AddSharedGroupMembers and RemoveSharedGroupMembers also can be handled by Cloud Script, and necessary changes in API Policy should be made.

Please also refer to Key restrictions and Client permission concerns sections on this document: https://docs.microsoft.com/en-us/gaming/playfab/features/social/groups/using-shared-group-data#client-permission-concerns

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.