Creating a Microsoft Exchange Online Path in the Workflow

Configure the "Follow First" setting to prioritize Task Transition conditions, ensuring the workflow follows the most relevant path first. Additionally, create actions for Microsoft Exchange Online us

Module Overview

💡 Now that we have logic in the workflow that checks for specific values of the Microsoft "group" object properties, and we've connected to the "Microsoft Graph" path, we need to build a similar path for updating group membership using Microsoft Exchange Online.

Video (5:48 Minutes)

Step 1: Configuring the Transition Mode of the check_group_type action
  1. Select the "check_group_type" noop.

  2. Select the Advanced Tab.

  3. Select "Follow First" under Transition Mode.

Step 2: Creating Microsoft Exchange Online Path
  1. Rename the "add_or_remove" noop to "add_or_remove_graph".

  2. Copy and Paste the "add_or_remove_graph" noop below the "Exchange Online" transition.

  3. Rename the copied noop to "add_or_remove_exchange".

  4. Connect the "Exchange Online" transition to the "add_or_remove_exchange" noop.

Step 3: Implementing Add to Group using Microsoft Exchange Online
  1. Add the "Invoke Command" action from Microsoft Exchange Online below the "add" transition of the "add_or_remove_exchange" noop.

  2. Select the InvokeCommand action.

  3. Enter "Add-DistributionGroupMember" for Cmdlet Name.

  4. Add the parameters:

    • Member: {{ CTX.user_id }}

    • Identity: {{ CTX.group_id }}

    • BypassSecurityGroupManagerCheck: {{ true }}

  5. Rename the action to "add_group_member"

Step 4: Implementing Remove from Group using Microsoft Exchange Online
  1. Copy and paste the "add_group_member" action from Microsoft Exchange Online below the "remove" transition of the "add_or_remove_exchange" noop.

  2. Select the copied action.

  3. Select the InvokeCommand action.

  4. Enter "Remove-DistributionGroupMember" for Cmdlet Name.

  5. Add the parameters:

    • Member: {{ CTX.user_id }}

    • Identity: {{ CTX.group_id }}

    • BypassSecurityGroupManagerCheck: {{ true }}

  6. Rename the action to "remove_group_member"

Action Item

  • Add or remove users from groups, ensuring the workflow uses the correct actions based on the group type.

Last updated