How to get current profile's userId?

I’m trying to implement user reviews into my site, but this review are about other users. I have most of it design, the only problem is that I can’t get the userId from the members page I’m currently viewing.

Let’s say I’m logged in as “Mr. X” and currently I’m viewing "Mr. Y"s profile page.
Now, the property wixUser.currentUser returns “Mr. X” userId and status. I need a property that returns “Mr. Y” userId so that I can link the review “Mr. X” wrote to the profile of “Mr. Y”.

I would try to make a dynamic page but I need the Member’s Bar object and can’t add it to a dynamic page. Besides this seems like something one should be able to do. Just like in a product page we have .getProduct() we should have a .getProfileUser() to get the current user we are viewing.

Perhaps this can help you out…
https://www.wix.com/corvid/reference/wix-users-backend/getuser

That method requires a userId which I don’t have. I need to get the id to get the user info. That is the problem. Inside a members page I should be able to access the user I’m currently viewing not only the logged one.