Integrations/MicrosoftGraphGroups/MicrosoftGraphGroups.py
def delete_group_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    """Delete a group by group id and return outputs in Demisto's format

    Args:
        client: Client object with request
        args: Usually demisto.args()

    Returns:
        Outputs.
    """
    group_id = str(args.get('group_id'))
    client.delete_group(group_id)

    # get the group data from the context
    group_data = demisto.dt(demisto.context(), f'{INTEGRATION_CONTEXT_NAME}(val.ID === "{group_id}")')
    if isinstance(group_data, list):
        group_data = group_data[0]

    # add a field that indicates that the group was deleted
    group_data['Deleted'] = True  # add a field with the members to the group
    entry_context = {f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)': group_data}

    human_readable = f'Group: "{group_id}" was deleted successfully.'
    return human_readable, entry_context, NO_OUTPUTS
Delete a group by group id and return outputs in Demisto's format

    Args:
        client: Client object with request
        args: Usually demisto.args()

    Returns:
        Outputs.
    
Delete a group by group id and return outputs in Demisto's format
Delete a group by group id and return outputs in Demisto ' s format
def delete_group_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    group_id = str(args.get('group_id'))
    client.delete_group(group_id)
    group_data = demisto.dt(demisto.context(), f'{INTEGRATION_CONTEXT_NAME}(val.ID === "{group_id}")')
    if isinstance(group_data, list):
        group_data = group_data[0]
    group_data['Deleted'] = True  
    entry_context = {f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)': group_data}
    human_readable = f'Group: "{group_id}" was deleted successfully.'
    return human_readable, entry_context, NO_OUTPUTS
def delete_group_command ( client : Client , args : Dict ) -> Tuple [ str , Dict , Dict ] : group_id = str ( args . get ( 'group_id' ) ) client . delete_group ( group_id ) group_data = demisto . dt ( demisto . context ( ) , f'{INTEGRATION_CONTEXT_NAME}(val.ID === "{group_id}")' ) if isinstance ( group_data , list ) : group_data = group_data [ 0 ] group_data [ 'Deleted' ] = True entry_context = { f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)' : group_data } human_readable = f'Group: "{group_id}" was deleted successfully.' return human_readable , entry_context , NO_OUTPUTS
Delete a group by group id and return outputs in Demisto's format
Delete a group by group id and return outputs in Demisto ' s format
"""Delete a group by group id and return outputs in Demisto's format

    Args:
        client: Client object with request
        args: Usually demisto.args()

    Returns:
        Outputs.
    """ # get the group data from the context # add a field that indicates that the group was deleted # add a field with the members to the group
None
client
Client
Client object with request
Client object with request
args
Dict
None