Get the information of user roles

I found a way to complete the task.

  1. Export my contact list
  2. Create a new collection and then import the data. Add a new field to categories the users.
  3. Use wix built in userRole feature to limit the pages that the users can access
  4. Build a backend web module to check the currentUser email and then return the category.
  5. So the page can be directed to a desired page based on the user email.
  6. I guess that Wix will officially release the getUserRole().
  7. Can anyone comment my approach?
  8. Is there any way automatically import new registered users contact to my collection?
    Hope Wix team can help