How to get Keycloak users via REST without admin account : <p>Is there a way to get a list of users on a Keycloak realm via REST <strong>WITHOUT</strong> using an admin account? Maybe some sort of assignable role from the admin console? Looking for any ideas.</p>

<p>Right now I'm using admin credentials to grab an access token, then using that token to pull users from the <code>realm/users</code> endpoint.</p>

<p>Getting the token (from node.js app via <code>request</code>):</p>

<pre><code>uri: `${keycloakUri}/realms/master/protocol/openid-connect/token`,
form: {
  grant_type: 'password',
  client_id: 'admin-cli',
  username: adminUsername,
  password: adminPassword,
}
</code></pre>

<p>Using the token:</p>

<pre><code>uri: `${keycloakUri}/admin/realms/${keycloakRealm}/users`,
headers: {
  'authorization': `bearer ${passwordGrantToken}`,
}
</code></pre>

<p>I want to be able to use generic user info (usernames, emails, fullnames) from a client application.</p>
