<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>I haven't been able to find an example of this in the source
code. Basically I just want to query for all users of a particular
department. My attempt here is not working:</p>
<p><font color="#999999">get '/groups/:group' => sub {<br>
<br>
my $group_name = params->{group};<br>
<br>
my %search_params = (cql => ["department=$group_name"]);</font></p>
<p><font color="#999999"> my $users =
LibreCat->searcher->search('user', \%search_params);<br>
<br>
template 'groups/group', {<br>
group_name => $group_name,<br>
users => $users<br>
};<br>
};</font></p>
<p>My user looks like this:</p>
<p><font color="#999999">_id: A0E86400-1266-11E8-9236-8266539212D2<br>
account_status: active<br>
date_created: 2018-02-15T15:41:03Z<br>
date_updated: 2018-03-12T09:20:08Z<br>
department:<br>
- _id: NiBa<br>
email: <a class="moz-txt-link-abbreviated" href="mailto:james.wallace@ist.ac.at">james.wallace@ist.ac.at</a><br>
first_name: James<br>
full_name: James Wallace<br>
last_name: Wallace</font><br>
</p>
<p>But when I run the query with 'NiBa' as the group name then I get
no results. Is my syntax or cql query correct?</p>
<p>Thanks,</p>
<p>Jonathan Norris</p>
<p>IST Austria<br>
</p>
</body>
</html>