# Check for group membership in Header code?

**URL:** <https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642>\
**Category:** UX\
**Created:** [23.Октябрь.2017 21:03:24 UTC](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642 "2017-10-23T21:03:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Gunnar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gunnar/32/119647_2.png) [@Gunnar](https://meta.discourse.org/u/Gunnar)\
**Post date:** [23.Октябрь.2017 21:03:24 UTC](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642/1 "2017-10-23T21:03:24Z")

</div>

Hi,

When adding a button or link to the Header field, can I check for group membership and make it conditional?

I.e., if the user doesn’t belong to group ‘group1’, then display the button, otherwise don’t.

Is there a way to do that?

Thanks!  
Gunnar

---

_[View the full topic](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642)._
