# Apply domain to menu access

**URL:** <https://discuss.tryton.org/t/apply-domain-to-menu-access/2156>\
**Category:** Developer\
**Created:** [January 7, 2020, 10:20am UTC](https://discuss.tryton.org/t/apply-domain-to-menu-access/2156 "2020-01-07T10:20:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pinki](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/p/35a633/32.png) [@pinki](https://discuss.tryton.org/u/pinki)\
**Post date:** [January 7, 2020, 10:20am UTC](https://discuss.tryton.org/t/apply-domain-to-menu-access/2156/1 "2020-01-07T10:20:29Z")

</div>

i need to show the menu to a specific set of users based on some condition. for example, is a user’s employee is eligible for certain allowances, then only the menu related to those specific allowances be visible to them.

how can this be achieved in tryton 5.0?

---

<div class="post-metadata">

**Author:** ![maxx](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/maxx/32/2320_2.png) [@maxx](https://discuss.tryton.org/u/maxx)\
**Post date:** [January 7, 2020, 12:31pm UTC](https://discuss.tryton.org/t/apply-domain-to-menu-access/2156/2 "2020-01-07T12:31:45Z")

</div>

Hi,  
Best way is to define a group and add specific users to this group.  
Then you allow only access this group to the menu.  
See example here (and lines before for adding new group): [http://hg.tryton.org/modules/purchase/file/tip/purchase.xml#l33](http://hg.tryton.org/modules/purchase/file/tip/purchase.xml#l33)
