Get security groups for user

Note: this is to be executed on the command line.