We want to make a game in which the user is able to create user (friend) groups. When a user creates a group, all those users should know they're a part of the group and that they can see all the other users of the group.
We want it to be possible to show leaderboards per group (sort of like a Friend Leaderboard).
How can we accomplish this using just PlayFab (there's no budget for an external server)?
1. How can we create these user/friend groups?
Do we create a new SharedGroupData that contains all the users PlayFab IDs and add the SharedGroupData ID to the ReadOnly data part of all the users (a JSON array for example)?
2. How can we show leaderboards per group?
Do we call GetLeaderboard multiple times until we have the ranking of every user in the group or do we have to make all users each others friend (multiple AddFriend calls) and just call GetFriendLeaderboard and filter that list with the selected group (by checking the SharedGroupData or perhaps add FriendTags to everyone to check in which groups they belong)?