I'm awarding gold to all groups a user is a member of, and first I need to call ListMemberships with CloudScript.
I can't find the right function to call, "group" and "groups" are not predefined objects and calling groups.ListMembership throws:
"StackTrace": "ReferenceError: groups is not defined\n at handlers.awardGold (A2460-main.js:216:26)" }