Keycloak - Get all Users mapped to roles
<p>I know keycloak has exposed below api,</p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.keycloak&lt;/groupId&gt;
    &lt;artifactId&gt;keycloak-services&lt;/artifactId&gt;
    &lt;version&gt;2.0.0.Final&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>With complete documentation <a href="http://www.keycloak.org/docs/rest-api/index.html" rel="noreferrer">here</a>. I cannot find the required api here to fetch all users with specific role mapped to them.</p>

<p><strong>Problem Statement</strong> - I need to pick all users from keycloak server who have a specific role. I need to send email to all users with role mapped to them.</p>