API functionality for tying userIds to Events