# Keycalok user role mapping and getting user info

**URL:** <https://forum.keycloak.org/t/keycalok-user-role-mapping-and-getting-user-info/20721>\
**Category:** Getting advice\
**Created:** [March 8, 2023, 7:06pm UTC](https://forum.keycloak.org/t/keycalok-user-role-mapping-and-getting-user-info/20721 "2023-03-08T19:06:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raaj\_123](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Raaj\_123](https://forum.keycloak.org/u/Raaj_123)\
**Post date:** [March 8, 2023, 7:06pm UTC](https://forum.keycloak.org/t/keycalok-user-role-mapping-and-getting-user-info/20721/1 "2023-03-08T19:06:22Z")

</div>

Hi,

1.I have 10 users under realm, how to check which user is admin using restapi… Is there any way that i can say this user is admin.

1. How to get the roles associated to the all user using keycloak rest api call.

I searched this question everywhere but nowhere I’m getting the answer. Please comment if you know the way to do these. Thank you.
