python, add vertex group to modifier
found the solution (blender 2.83.3)
bpy.context.object.modifiers[&quot;Surface Deform&quot;].vertex_group = &quot;vgroup22&quot;

didn't know, that every action is displayed in the &quot;info&quot; window and the code can simply be copied.