server
server copied to clipboard
Show users without groups
I would like to have an entry "Users w/o groups" in /settings/users to display users not assigned to any group.
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.