# CSS Classes for Current User's Groups

**URL:** https://meta.discourse.org/t/css-classes-for-current-users-groups/226068
**Category:** Theme component
**Tags:** official
**Created:** [May 4, 2022, 4:06am UTC](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068 "2022-05-04T04:06:25Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)
#### Post date: [September 25, 2026, 3:05pm UTC](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068/2 "2026-09-25T15:05:23Z")

</div>

Will this theme component be updated to reflect the recent `user.groups` [deprecation](https://meta.discourse.org/t/deprecating-the-user-of-user-groups-in-the-user-model-in-javascript/411124)?

I’m getting the following warning in my console:

> DEPRECATION NOTICE: Calling user.groups is deprecated, use user.visibleGroups instead, it more accurately reflects what this array of groups represents, not all of the user’s group memberships may be serialized to the client. For permission checks, check the user’s groups server-side and add an attribute to the User/CurrentUserSerializer, or use `resolve_group_memberships: true` for theme settings

---

_[View the full topic](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068)._
