I'm trying to come up with the best usage of calls for a simple operation, adding users to a shared group.
Since PlayFab doesn't have a function that retrieves all shared groups a user has in common, I figured adding a "Groups" master index on individual users would be the best way to go about it. Now it's feeling a bit awkward and I feel like this is wrong due to the order of operations involved in simply adding a user.
This is the workflow:
- GetUserAccountInfo (we retrieve the playfabID for the user we want to add)
- AddSharedGroupMembers (request to add the playfabID to the sharedgroupID)
- GetUserData (we retrieve the current value of master index)
- UpdateUserData (we update the master index with the new group to join for the playfabID)
This feels like I'm making unnecessary calls to GetUserData, is there a way to retrieve the UserData and AccountInfo with the same call?