Get the information of user roles

Thanks Lior,
I have tried this. It works.
But I have another 2 questions.

  1. First, I add some members with more than 1 roles. When I assign [1]. It does not work. What does roles[1] means?
  2. Currently, I am using another collection to store the contact? Any suggestion on this arrangement? Million thanks