[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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message