find userId of existing site members

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?

If you have the database with userId as a key field then you should see the userid. If you don’t see it, goto your database and click “Visible Fields” and check the ID box, this will show the user id field.

Where do I add this code on my site so existing members can update their information? Do I add it to the dataset handler on a page or do I add a hook to the database? I’m not very experience with writing code, so I could really use so guidance with this.
Thanks!