Am trying to test the wix-users getRoles() function, but it does not seem to be working in Preview Mode. The API reference notes that, "The APIs in wix-users are only partially functional when previewing your site." Does getRoles() happen to be one of those API's that only works in published mode (it does work there), or is there something going on with wix-users?
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
![feature fixed.png](https://static.wixstatic.com/media/3bfa8a_f845e1016b8a49758acdd6edd6610c3b~mv2.png/v1/crop/x_0,y_2,w_852,h_508/fill/w_104,h_62,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/feature%20fixed.png)
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
Yes, that seem to only work in published mode. I think roles from membership only has data in live mode and none in sandbox. I have posted a feature request to be able to click Preview As... and dropdown to let you choose user to preview site with
Hello
on the preview site you're always the admin of the website, try it on the life site using different members details.
Best
Massa