<p>As a workaround you can get a list of users who haven't been assigned groups through the front-end:</p>

<pre><code>{% set users = craft.users.group(['not', 'foo', 'bar']) %}

{% if users|length %}
    &lt;ul&gt;
        {% for user in users %}
            &lt;li&gt;{{ user.name }}&lt;/li&gt;
        {% endfor %}
    &lt;/ul&gt;
{% endif %}
</code></pre>

<p>Just replace <code>foo</code> and <code>bar</code> with your group handles, and add more if necessary.</p>

CC BY-SA 4.0
2019-07-15T09:03:58.417Z
2019-07-15T09:03:58.417Z
Jamie Wade
<p>There isn't a way baked in to Craft - probably something to do with the fact that users can be in multiple groups. Although I totally agree it would be useful, like at least listing the first group they're in, like the Entries view does with Categories.</p>

CC BY-SA 4.0
2019-07-15T08:19:00.723Z
2019-07-15T08:19:00.723Z
darylknight
<p>I want to scan my user list to see if anyone <em>hasn't</em> been assigned to a group. </p>

<p>Is there a way to show user groups as a column at <code>admin/users</code>?</p>

<control-panel><user-groups>
Show user group in CP user listing?
# Show user group in CP user listing?

(Asked by: username_0 on 2019-07-15)

I want to scan my user list to see if anyone *hasn't* been assigned to a group.

Is there a way to show user groups as a column at `admin/users`?

**Tags:** control-panel, user-groups

---

## 2 answers

### Answer by username_1 on 2019-07-15. Score: 2

As a workaround you can get a list of users who haven't been assigned groups through the front-end:
{% set users = craft.users.group(['not', 'foo', 'bar']) %}

{% if users|length %}
    
        {% for user in users %}
            {{ user.name }}
        {% endfor %}
    
{% endif %}

Just replace foo and bar with your group handles, and add more if necessary.


---

### Answer by username_2 on 2019-07-15. Score: 2

There isn't a way baked in to Craft - probably something to do with the fact that users can be in multiple groups. Although I totally agree it would be useful, like at least listing the first group they're in, like the Entries view does with Categories.


---

