I want to create custom JSP that lists user groups and do some stuff depending on user groups.

Code snippet that gets user group list would be grate. Thanks