API functionality for tying userIds to Events. (Added documentation)