I can get the member details through https://www.wix.com/velo/reference/wix-members-backend/members/getmember
but getting the roles (https://www.wix.com/velo/reference/wix-members/currentmember/getroles is only for the logged-in user, not the one queried above.
Is there any way to get the role of the user queried without them being logged in?
TIA!
A user who is not logged-in, normaly just have a random ID.
Roles and Badges are available only when logged-in.
Why would they have a random ID? I have already queried the site members database and got the ID I want. Now I just want to see for that ID, which roles have been assigned to it.
Is there any way to do that?
How you can get the ID, if the USER is not logged in?
Where do you get the information from, taht the current USER is for example exactly → Mr.-X and not MRs.-Y ?
The user do not provide any information about him/herself, right?
-no email
-no slug
-no nickname
-no password
nothing —> because the user do not log in.
But maybe i understand something wrong.
Even if you are using your own custom DATBASE, how to determine, that the current loggend-in-user has a specific ID ?
I have already queried the site members database and got the ID I want
Where did you get the informations about the current user, navigating on your site?
So he has already loggen-in, giving you some informations about him/herself?