class GetUsersByGroupAPIController {

    @RequestMapping(method = RequestMethod.GET, value = "/by-group/{group}", produces = MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public String info(Authentication auth, @PathVariable String group,
            @RequestParam(value = "status", required = false) String userStatus)
            throws MuleException
    {

        group = new String(Base64.getUrlDecoder().decode(group.getBytes()));
        log.debug("Getting users for group [{}]", group);
        return groupService.getUserMembersForGroup(group, Optional.ofNullable(userStatus), auth);
    }

}