server icon indicating copy to clipboard operation
server copied to clipboard

Show users without groups

Open chiefbrain opened this issue 6 years ago • 1 comments

I would like to have an entry "Users w/o groups" in /settings/users to display users not assigned to any group.

chiefbrain avatar Mar 10 '19 14:03 chiefbrain

Try this from the CLI instead:

./occ user:list --info --output=json_pretty | jq 'map({ user_id: .user_id, groups: .groups }) | map(select(.groups ==[]))'

Then you can even stick in a script if you want to generate a report for yourself periodically.

joshtrichards avatar Jun 16 '23 16:06 joshtrichards