# How can i discover the group of a user?

**URL:** <https://community.ofelia.com/t/how-can-i-discover-the-group-of-a-user/4120>\
**Category:** Q&A\
**Created:** [16 January 2014 14:55 UTC](https://community.ofelia.com/t/how-can-i-discover-the-group-of-a-user/4120 "2014-01-16T14:55:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro.porfirio](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pedro.porfirio](https://community.ofelia.com/u/pedro.porfirio)\
**Post date:** [16 January 2014 14:55 UTC](https://community.ofelia.com/t/how-can-i-discover-the-group-of-a-user/4120/1 "2014-01-16T14:55:03Z")

</div>

I want to show the group ( the departament) where&nbsp; the user,&nbsp; that is doing a task, works.

How can I get this group?

My organization is very simple. Each user is member of&nbsp; only one group.

I tryed two ways :

- A task is done by an actor that can be&nbsp; maped to many groups.

- A user can be member of many groups.

---

<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:** [16 January 2014 16:45 UTC](https://community.ofelia.com/t/how-can-i-discover-the-group-of-a-user/4120/2 "2014-01-16T16:45:17Z")

</div>

Hi,

You can find information related to organization via IdentityApi&nbsp;[http://documentation.bonitasoft.com/javadoc/api/6.2/community/common/index.html](http://documentation.bonitasoft.com/javadoc/api/6.2/community/common/index.html)

You have access to IdentityApi using apiAccessor.getIdentityAPI in Groovy Scripts.

Regards,
