'Get a list of users.
By default, a listing of all users for the current domain are
returned. You may specify GET parameters for project_id, domain_id and
group_id to change that listing\'s context.
The listing result is an object with property "items".'

@rest_utils.ajax()
def get(self, request):

    domain_context = request.session.get('domain_context')
    filters = rest_utils.parse_filters_kwargs(request, self.client_keywords)[0]
    if (len(filters) == 0):
        filters = None
    result = api.keystone.user_list(request, project=request.GET.get('project_id'), domain=request.GET.get('domain_id', domain_context), group=request.GET.get('group_id'), filters=filters)
    return {'items': [u.to_dict() for u in result]}
