I have a database on my site with userId as the key. I have easy access in code to the userId of the currently logged-in user with:
let user = wixUsers.currentUser; let userId = wixUsers.currentUser.id
I would like to add records to this database for existing site members so that when they access the page with this database, I can present their unique information by keying on their userId.
For example, Fred is a member of my site. I can see him in my members list and I can give Fred various permissions/roles. Is there a way to find Fred's userId without asking Fred to login?