Integrations/MicrosoftGraphGroups/MicrosoftGraphGroups.py
def add_member_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    """Add a member to a group by group id and user id. 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'))
    user_id = str(args.get('user_id'))
    required_properties = {
        "@odata.id": f'https://graph.microsoft.com/v1.0/users/{user_id}'}
    client.add_member(group_id, required_properties)

    human_readable = f'User {user_id} was added to the Group {group_id} successfully.'
    return human_readable, NO_OUTPUTS, NO_OUTPUTS
Add a member to a group by group id and user id. return outputs in Demisto's format.

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

    Returns:
        Outputs.
    
Add a member to a group by group id and user id. return outputs in Demisto's format.
Add a member to a group by group id and user id . return outputs in Demisto ' s format .
def add_member_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    group_id = str(args.get('group_id'))
    user_id = str(args.get('user_id'))
    required_properties = {
        "@odata.id": f'https://graph.microsoft.com/v1.0/users/{user_id}'}
    client.add_member(group_id, required_properties)
    human_readable = f'User {user_id} was added to the Group {group_id} successfully.'
    return human_readable, NO_OUTPUTS, NO_OUTPUTS
def add_member_command ( client : Client , args : Dict ) -> Tuple [ str , Dict , Dict ] : group_id = str ( args . get ( 'group_id' ) ) user_id = str ( args . get ( 'user_id' ) ) required_properties = { "@odata.id" : f'https://graph.microsoft.com/v1.0/users/{user_id}' } client . add_member ( group_id , required_properties ) human_readable = f'User {user_id} was added to the Group {group_id} successfully.' return human_readable , NO_OUTPUTS , NO_OUTPUTS
Add a member to a group by group id and user id.
Add a member to a group by group id and user id .
"""Add a member to a group by group id and user id. 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