# Check for group membership in Header code?

**URL:** <https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642>\
**Category:** UX\
**Created:** [Octobre 23, 2017, 9:03 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:** 6

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [Octobre 24, 2017, 4:42 UTC](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642/6 "2017-10-24T04:42:06Z")

</div>

It exist already. For example, If a user’s primary group is `customers` then the body tag will have the CSS class `primary-group-customers`. And it will work only for primary group property.

---

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