Building the "Add or Remove User - Microsoft Group" Form

Create a form that contains the required input to automate a process

Module Overview

💡 Every Rewst workflow begins with a "trigger." Here, our trigger will be a Rewst form. The form will include fields for selecting a user, a group, and an action (add or remove).

Video (5:22 Minutes)

Log into Rewst and complete the following steps.

Step 1: Access the Form Builder
  1. Go to Automations -> Forms.

  2. Click the "+" icon to create a new form.

  3. Name it "Add or Remove User - Microsoft Group Form"

Feel free to personalize the title with your name and/or "training demo".

Step 2: Create the User Selection Field
  1. Use the "Dropdown" field type for selecting a user from a list.

  2. Set "user_id" as the Field Name (this is important for later workflow steps).

  3. Label the field "User" and provide a clear description like "Select a user."

  4. Make the field required and enable Dynamic Options to pull data from Microsoft Graph, selecting Microsoft Graph as the integration and Users as the Resource.

Title case matters! Ensure the Field Name is lowercase, one word (or if using multiple words, joined with an underscore as per this example).

Step 3: Create the Group Selection Field
  1. Add another "Dropdown" field for selecting a group.

  2. Set "group_id" as the Field Name.

  3. Label the field "Group" and describe it as "Select a group."

  4. Make it a required field, enable "Dynamic Options," and select "Microsoft Graph" as the integration with "Groups" as the Resource.

Step 4: Create the Action Selection Field
  1. Use Radio Buttons for the action selection field.

  2. Set "action" as the Field Name and label it "Action" with the description "Select one."

  3. Define the options: "Add to Group" with a value of "add" and "Remove from Group" with a value of "remove." Title case is important! Ensure all "values" are lowercase, one word.

  4. Ensure the field is required and save your work.

Step 5: Save and Preview
  1. Save your form by clicking the disk icon and selecting "submit."

  2. Preview the form by clicking the eye icon to see how it looks.

Remember: Making mistakes is part of the learning process! If you make an error while building your form, you can always go back and edit or delete fields.

Action Items

  • Create your form in Rewst following the steps outlined above, ensuring you include fields for user selection, group selection, and action selection.

  • Make sure to set up your Microsoft Graph integration if you haven’t already, as it's required for the dynamic options in the form fields (and you'll see those after creating the workflow).

Last updated