I’m moving this post to the Coding with Velo category.
First of all, wix-users has been deprecated and it is recommended to use wix-members instead.
Note: The APIs in wix-members and wix-users are only partially functional when previewing your site. View a published version of your site to see their complete functionality.
Now regarding your problem… The most likely reason this isn’t working is that your filtering code is in the wrong place. The userEmail variable won’t be available since the filtering code will run before the Promise returned by user.getEmail() is resolved. You will need to move your filtering code to be inside of the .then() .
See the following for more information about Promises: