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?


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.


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 %}
            <li>{{ user.name }}</li>
        {% endfor %}
{% endif %}

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.