def get(self, request, group_id, format=None):
    ' List all group members\n\n        Permission checking:\n        1. only admin can perform this action.\n        '
    if (not request.user.admin_permissions.can_manage_group()):
        return api_error(status.HTTP_403_FORBIDDEN, 'Permission denied.')
    group_id = int(group_id)
    group = ccnet_api.get_group(group_id)
    if (not group):
        error_msg = ('Group %d not found.' % group_id)
        return api_error(status.HTTP_404_NOT_FOUND, error_msg)
    try:
        avatar_size = int(request.GET.get('avatar_size', AVATAR_DEFAULT_SIZE))
    except ValueError:
        avatar_size = AVATAR_DEFAULT_SIZE
    try:
        members = ccnet_api.get_group_members(group_id)
    except Exception as e:
        logger.error(e)
        error_msg = 'Internal Server Error'
        return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)
    group_members_info = []
    for m in members:
        member_info = get_group_member_info(request, group_id, m.user_name, avatar_size)
        group_members_info.append(member_info)
    group_members = {'group_id': group_id, 'group_name': group.group_name, 'members': group_members_info}
    return Response(group_members)
List all group members

Permission checking:
1. only admin can perform this action.
def get(self, request, group_id, format=None):
    ' List all group members\n\n        Permission checking:\n        1. only admin can perform this action.\n        '
    if (not request.user.admin_permissions.can_manage_group()):
        return api_error(status.HTTP_403_FORBIDDEN, 'Permission denied.')
    group_id = int(group_id)
    group = ccnet_api.get_group(group_id)
    if (not group):
        error_msg = ('Group %d not found.' % group_id)
        return api_error(status.HTTP_404_NOT_FOUND, error_msg)
    try:
        avatar_size = int(request.GET.get('avatar_size', AVATAR_DEFAULT_SIZE))
    except ValueError:
        avatar_size = AVATAR_DEFAULT_SIZE
    try:
        members = ccnet_api.get_group_members(group_id)
    except Exception as e:
        logger.error(e)
        error_msg = 'Internal Server Error'
        return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)
    group_members_info = []
    for m in members:
        member_info = get_group_member_info(request, group_id, m.user_name, avatar_size)
        group_members_info.append(member_info)
    group_members = {'group_id': group_id, 'group_name': group.group_name, 'members': group_members_info}
    return Response(group_members)