How to get an object's groups?

Hello, does anyone know how I can get access to an object’s groups? To find the groups that it belongs to? Not much is written online for groups…
Thanks

for i in bpy.context.active_object.users_group:
        gr.append( i )

Group the default cube and look at


obj = D.objects['Cube']
obj.users_group[0]

Thank you all! :slight_smile: