x

Same user_id for all members?

Good day,
now I create weebly app that must know email of user that using it.
However, when I try get user_id in my app (from component) I get same user id for all people. Why that happenes and how I can to index user by email without user_id?

1,130 Views
Message 1 of 3
Report
2 REPLIES 2

Hello @pierreyfl

The `user_id` property is ONLY the one user, per our User API Docs:

The User API returns information about the user passed in via the OAuth token used to access the API.
This user is the owner of the site where your app is installed.
You can only retrieve details for this given user.

If the answer I've provided is not what you are inquring about, could you clarify where you are encountering the problem using some code perhaps ( code leaves less to interpretation Smiley Very Happy ) please?

Tags (1)
1,122 Views
Message 2 of 3
Report

Sorry, however based on your answer I have the notion that I can not in any way know the data of the user who uses my application?

----
I get user_id in Include Additional Data of element.
https://dev.weebly.com/pf_apps_element_js.html#include-additional-data

"element_id, user_id, site_id: We also expose some identifying information about the current user, site, and element. The element_id is the unique element ID for this element instance. The user_id and the site_id are the unique identifiers for the current user and site."
1,114 Views
Message 3 of 3
Report