# REST API - Users groups attribute

**URL:** <https://forum.keycloak.org/t/rest-api-users-groups-attribute/7249>\
**Category:** Getting advice\
**Tags:** admin-rest\
**Created:** [February 8, 2021, 5:25pm UTC](https://forum.keycloak.org/t/rest-api-users-groups-attribute/7249 "2021-02-08T17:25:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![M3gababa](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/m3gababa/32/2320_2.png) [@M3gababa](https://forum.keycloak.org/u/M3gababa)\
**Post date:** [February 8, 2021, 5:25pm UTC](https://forum.keycloak.org/t/rest-api-users-groups-attribute/7249/1 "2021-02-08T17:25:39Z")

</div>

Hello,  
I’m new to keycloak and trying to use the webservises (REST API) in order to build up an adapter to retrieve users, groups, roles, …  
Based on the [documentation](https://www.keycloak.org/docs-api/12.0/rest-api/index.html#_userrepresentation), we’re supposed to get a **groups** attribute in the users returned but we can’t see it.

 ![KeyCloack_groups](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/2/285270adba079411f4786fbf748ac2409ec7ee91.png)

```
   [
    {
        "id": "43142a9d-7027-48a7-9112-4c3b5127730d",
        "createdTimestamp": 1612782098658,
        "username": "norbert.miera",
        "enabled": true,
        "totp": false,
        "emailVerified": true,
        "firstName": "Norbert",
        "lastName": "Miera",
        "email": "norbert.miera@demo.com",
        "disableableCredentialTypes": [],
        "requiredActions": [
            "UPDATE_PROFILE"
        ],
        "notBefore": 0,
        "access": {
            "manageGroupMembership": true,
            "view": true,
            "mapRoles": true,
            "impersonate": true,
            "manage": true
        }
    }
]

```

Do you have any tips / advice / userguide on how to get this information?

Thanks in advance !

---

<div class="post-metadata">

**Author:** ![liorgur](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@liorgur](https://forum.keycloak.org/u/liorgur)\
**Post date:** [September 22, 2021, 2:57pm UTC](https://forum.keycloak.org/t/rest-api-users-groups-attribute/7249/2 "2021-09-22T14:57:17Z")

</div>

have the same issue.  
The strange thing that the group attribute appears in the token ( after i created a mapper for that), but i still cannot get the group attribute when using the Admin API.

What should i do in order to get the group attributes in the GET /{realm}/users api

---

<div class="post-metadata">

**Author:** ![Athul4554](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Athul4554](https://forum.keycloak.org/u/Athul4554)\
**Post date:** [March 22, 2022, 6:48am UTC](https://forum.keycloak.org/t/rest-api-users-groups-attribute/7249/3 "2022-03-22T06:48:42Z")

</div>

Guys any solution found for this one ? @liorgur , @dasniko

---

<div class="post-metadata">

**Author:** ![Athul4554](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Athul4554](https://forum.keycloak.org/u/Athul4554)\
**Post date:** [March 22, 2022, 6:52am UTC](https://forum.keycloak.org/t/rest-api-users-groups-attribute/7249/4 "2022-03-22T06:52:04Z")

</div>

@M3gababa any solution you got ?
