Forum Discussion

mayank's avatar
11 years ago

rest api to fetch communitys user email

i want to fetch all emails of community users using rest api.
  • dhiraj_gophane's avatar
    11 years ago

    Hi Mayank,

     

    You can use following snippet.


    <#assign user_list = restadmin("/users?restapi.format_detail=full_list_element&restapi.response_style=view")/>
    <#list user_list.users.user as User>
      ${User.email}
    </list>

     

    Hope its helpful.

    If so please accept it as solution.