[Cloud functions] How to get the UserID of the user that is triggering a write in the database

5,010 views
Skip to first unread message

Joe Roy

unread,
May 16, 2017, 12:03:52 PM5/16/17
to Firebase Google Group
I have a cloud function that triggers on write of a particular location in the database. I'm trying to retrieve the UserID of the user that triggered the write. Is this possible? I'd rather avoid having the user write his user ID inside the message he is writing if possible.

Doug Stevenson

unread,
May 16, 2017, 6:26:58 PM5/16/17
to Firebase Google Group

Joe Roy

unread,
May 17, 2017, 9:32:10 AM5/17/17
to Firebase Google Group
Perfect, thanks a lot!
Reply all
Reply to author
Forward
0 new messages