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

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

    Returns:
        Outputs.
    """
    required_properties = {
        'displayName': str(args.get('display_name')),
        'mailNickname': str(args.get('mail_nickname')),
        'mailEnabled': args.get('mail_enabled') == 'true',
        'securityEnabled': args.get('security_enabled')
    }

    # create the group
    group = client.create_group(required_properties)

    # display the new group and it's properties
    group_readable, group_outputs = parse_outputs(group)
    human_readable = tableToMarkdown(name=f"{required_properties['displayName']} was created successfully:",
                                     t=group_readable,
                                     headers=['ID', 'Display Name', 'Description', 'Created Date Time', 'Mail',
                                              'Security Enabled', 'Mail Enabled'],
                                     removeNull=True)
    entry_context = {f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)': group_outputs}
    return human_readable, entry_context, group
Create a group and return outputs in Demisto's format.

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

    Returns:
        Outputs.
    
Create a group and return outputs in Demisto's format.
Create a group and return outputs in Demisto ' s format .
def create_group_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    required_properties = {
        'displayName': str(args.get('display_name')),
        'mailNickname': str(args.get('mail_nickname')),
        'mailEnabled': args.get('mail_enabled') == 'true',
        'securityEnabled': args.get('security_enabled')
    }
    group = client.create_group(required_properties)
    group_readable, group_outputs = parse_outputs(group)
    human_readable = tableToMarkdown(name=f"{required_properties['displayName']} was created successfully:",
                                     t=group_readable,
                                     headers=['ID', 'Display Name', 'Description', 'Created Date Time', 'Mail',
                                              'Security Enabled', 'Mail Enabled'],
                                     removeNull=True)
    entry_context = {f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)': group_outputs}
    return human_readable, entry_context, group
def create_group_command ( client : Client , args : Dict ) -> Tuple [ str , Dict , Dict ] : required_properties = { 'displayName' : str ( args . get ( 'display_name' ) ) , 'mailNickname' : str ( args . get ( 'mail_nickname' ) ) , 'mailEnabled' : args . get ( 'mail_enabled' ) == 'true' , 'securityEnabled' : args . get ( 'security_enabled' ) } group = client . create_group ( required_properties ) group_readable , group_outputs = parse_outputs ( group ) human_readable = tableToMarkdown ( name = f"{required_properties['displayName']} was created successfully:" , t = group_readable , headers = [ 'ID' , 'Display Name' , 'Description' , 'Created Date Time' , 'Mail' , 'Security Enabled' , 'Mail Enabled' ] , removeNull = True ) entry_context = { f'{INTEGRATION_CONTEXT_NAME}(val.ID === obj.ID)' : group_outputs } return human_readable , entry_context , group
Create a group and return outputs in Demisto's format.
Create a group and return outputs in Demisto ' s format .
"""Create a group and return outputs in Demisto's format.

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

    Returns:
        Outputs.
    """ # create the group # display the new group and it's properties
None
client
Client
Client object with request
Client object with request
args
Dict
None