M365 Admins
Integration
Example: Inactive guest

Example: Inactive guest

In this example, an Azure Logic App informs inactive guests with your own email. It explains your company's rules and states the dates on which access will be blocked and deleted.

Prerequisite

You need a Logic App in Azure. Microsoft shows how to create one here: Create a Logic App workflow in the Azure portal ↗ (opens in a new tab)

Setup

Create the workflow

The workflow has three steps:

  1. When a HTTP request is received: receives the notification from Seamless
  2. Get user: reads the guest's details
  3. Send an email (V2): sends the email

Set up the trigger

Start with the trigger When a HTTP request is received. It creates an address to which Seamless sends the notification. After saving, you can see the address under HTTP URL.

Read the guest

Add the step Get user and pass userId from the notification. The step returns the guest's details, for example name and email address.

Send the email

Add the step Send an email (V2). Use the guest's details in the text and use functions to calculate the dates for blocking and deletion, based on today's date and the days in your guest template.

Connect to Seamless

  1. In the Admin Center, open Guests > Templates and edit the guest template.
  2. Open the Lifecycle tab and go to Inactive guests.
  3. Under Extend with custom automation, copy the HTTP URL from the trigger into Notification endpoint.
  4. Click Save.

Test

  1. Check that a test guest has this guest template and counts as inactive.
  2. Open Monitoring > Jobs and click Reset next to Reset all users status.
  3. Click Run now for the job Inactive guests.

Check the delivery

Under Monitoring > Webhooks you can see whether the notification arrived and what the Logic App responded. Details: Monitoring > Webhooks

© 2026 seamlesswork AG