How to get group name from groupId?

Hi All,

For the threads list i can get thread's parent group id. Is there a way to get the name of the group?

thanks,
Kalim