Integrations/MicrosoftGraphGroups/MicrosoftGraphGroups.py
def list_groups_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    """Lists all groups and return outputs in Demisto's format.

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

    Returns:
        Outputs.
    """
    order_by = args.get('order_by')
    next_link = args.get('next_link')
    top = args.get('top')
    filter_ = args.get('filter')
    groups = client.list_groups(order_by, next_link, top, filter_)

    groups_readable, groups_outputs = parse_outputs(groups['value'])

    next_link_response = ''
    if '@odata.nextLink' in groups:
        next_link_response = groups['@odata.nextLink']

    if next_link_response:
        entry_context = {f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID).NextLink': next_link_response,
                         f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)': groups_outputs}
        title = 'Groups (Note that there are more results. Please use the next_link argument to see them.):'
    else:
        entry_context = {f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)': groups_outputs}
        title = 'Groups:'

    human_readable = tableToMarkdown(name=title, t=groups_readable,
                                     headers=['ID', 'Display Name', 'Description', 'Created Date Time', 'Mail'],
                                     removeNull=True)

    return human_readable, entry_context, groups
Lists all groups and return outputs in Demisto's format.

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

    Returns:
        Outputs.
    
Lists all groups and return outputs in Demisto's format.
Lists all groups and return outputs in Demisto ' s format .
def list_groups_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    order_by = args.get('order_by')
    next_link = args.get('next_link')
    top = args.get('top')
    filter_ = args.get('filter')
    groups = client.list_groups(order_by, next_link, top, filter_)
    groups_readable, groups_outputs = parse_outputs(groups['value'])
    next_link_response = ''
    if '@odata.nextLink' in groups:
        next_link_response = groups['@odata.nextLink']
    if next_link_response:
        entry_context = {f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID).NextLink': next_link_response,
                         f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)': groups_outputs}
        title = 'Groups (Note that there are more results. Please use the next_link argument to see them.):'
    else:
        entry_context = {f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)': groups_outputs}
        title = 'Groups:'
    human_readable = tableToMarkdown(name=title, t=groups_readable,
                                     headers=['ID', 'Display Name', 'Description', 'Created Date Time', 'Mail'],
                                     removeNull=True)
    return human_readable, entry_context, groups
def list_groups_command ( client : Client , args : Dict ) -> Tuple [ str , Dict , Dict ] : order_by = args . get ( 'order_by' ) next_link = args . get ( 'next_link' ) top = args . get ( 'top' ) filter_ = args . get ( 'filter' ) groups = client . list_groups ( order_by , next_link , top , filter_ ) groups_readable , groups_outputs = parse_outputs ( groups [ 'value' ] ) next_link_response = '' if '@odata.nextLink' in groups : next_link_response = groups [ '@odata.nextLink' ] if next_link_response : entry_context = { f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID).NextLink' : next_link_response , f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)' : groups_outputs } title = 'Groups (Note that there are more results. Please use the next_link argument to see them.):' else : entry_context = { f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)' : groups_outputs } title = 'Groups:' human_readable = tableToMarkdown ( name = title , t = groups_readable , headers = [ 'ID' , 'Display Name' , 'Description' , 'Created Date Time' , 'Mail' ] , removeNull = True ) return human_readable , entry_context , groups
Lists all groups and return outputs in Demisto's format.
Lists all groups and return outputs in Demisto ' s format .
"""Lists all groups and return outputs in Demisto's format.

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

    Returns:
        Outputs.
    """
None
client
Client
Client object with request
Client object with request
args
Dict
None