dsquery user -samid [username] | dsget user -memberof -expand | dsget group -samid