sajad torkamani
groups <user> | xargs -n1

Tagged: macOS