Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: User Group column in Craft CP Users > All Users table + export #7211

Closed
acantes opened this issue Dec 1, 2020 · 5 comments
Labels
enhancement improvements to existing features user management 😇 features related to user management
Milestone

Comments

@acantes
Copy link

acantes commented Dec 1, 2020

A client with access to User managemeent features via the Control Panel would like to see a User Group column in the display of All Users, and ideally be able to create an export of all users that includes an additional column of the assigned User Group for each User as well.

The rationale being that for a website with hundreds of members, searching for a particular user in the CP doesn't reveal any details of their group assignment. My client then has to click each one of nine user groups in turn and search for the member's name each time to find the user in the single group they are in.

Unless I've missed something (and most times I have) then I can't add the User Group column to the All Users display in the CP using the Customize options.

@brandonkelly brandonkelly added enhancement improvements to existing features user management 😇 features related to user management labels Dec 1, 2020
brandonkelly added a commit that referenced this issue Dec 1, 2020
@brandonkelly
Copy link
Member

Just added the ability to show a “Groups” column on user indexes, for Craft 3.6.

and ideally be able to create an export of all users that includes an additional column of the assigned User Group for each User as well.

That’s unfortunately not easily doable at the moment. Your best bet would be to create a custom exporter with the exact data you need. Be sure to call the new withGroups() param on the user query before calling all(), so the groups get eager-loaded onto the users before you call getGroups() on each of them.

Or, feel free to repost that as its own issue and I can throw it on the v4 milestone.

@brandonkelly brandonkelly added this to the 3.6 milestone Dec 1, 2020
@brandonkelly
Copy link
Member

Craft 3.6 RC2 is out now with this change.

@acantes
Copy link
Author

acantes commented Dec 16, 2020

Thanks for such a quick update, Brandon!

@brandonkelly
Copy link
Member

Craft 3.6 has now been officially released ✨

@acantes
Copy link
Author

acantes commented Jan 28, 2021

Thanks Brandon, I'll give it a whirl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features user management 😇 features related to user management
Projects
None yet
Development

No branches or pull requests

2 participants