Setting the right context for an Outliner Operation I am trying to invoke bpy.ops.outliner.group_operation(type='LINK') in an addon but unable to get the right context.

From a bit of searching, it appears I would need to have the OUTLINER area active before calling the op, but cannot figure out how to do that.

How can I set the right context in order to call bpy.ops.outliner.group_operation()?

Edit: The ultimate objective is to 'Link Group objects to Scene' which is an option available in the context menu for a group.
I managed to make it run by overriding the context but it doesn't appear to actually do anything when run this way.
Overriding the context finally worked for me, with the help of this
answer:

override = bpy.context.copy()
for area in bpy.context.screen.areas:
    if area.type == 'OUTLINER':
        override['area'] = area
bpy.ops.outliner.group_operation(override, type='LINK')