Does anyone know of a way, through the scripting language, to retrieve the name of the groups a user belongs to on a local machine?

Many thanks
Ian