created a function to retrieve details of a membergroup from it's id

Signed-off-by: emanuele <emanuele45@gmail.com>