androidparse-platformparse-cloud-codeuserid

How can I get user-Id in parse cloud code function?


I'm calling a parse cloud code function from android app, and I need userId (objectId) to read some data about him.

The question is, how can I get the userId?

I know how to do it with params, but it's already in the request (image below).

userId_img


Solution

  • You can access the current logged in user id via request.user.id