# Get the groups of a user

**URL:** <https://community.ofelia.com/t/get-the-groups-of-a-user/9721>\
**Category:** Q&A\
**Created:** [3 July 2019 09:37 UTC](https://community.ofelia.com/t/get-the-groups-of-a-user/9721 "2019-07-03T09:37:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurucsai.zoltan1988](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kurucsai.zoltan1988](https://community.ofelia.com/u/kurucsai.zoltan1988)\
**Post date:** [3 July 2019 09:37 UTC](https://community.ofelia.com/t/get-the-groups-of-a-user/9721/1 "2019-07-03T09:37:58Z")

</div>

Hello everyone!

Back with a new problem to solve. For my page I need to get the groups of the logged in user. I already know how to get the users for a group, but this time i need the opposite. Can i get the groups in designer with an API or an extension would be a better approach?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [30 September 2019 15:34 UTC](https://community.ofelia.com/t/get-the-groups-of-a-user/9721/2 "2019-09-30T15:34:34Z")

</div>

Actually a user is not directly within a group but is associated with a group and a role in this group, what is called in Bonita membership.

For a user with id 888, calling `API/identity/membership?p=0&c=10&f=user_id%3d888&d=role_id&d=group_id` will give you the information about all the user memberships. `d=` is used to get information about the role and the group and not only the unique id of the role and group.
