Skip to main content
This page explains how to configure a workflow that disables the Microsoft Entra ID account of a departing employee. The workflow then unassigns the apps you choose. Use the template “Offboarding via Entra ID (App Unassignment)”.
Microsoft Entra ID (Azure AD) is the only identity provider supported at present.

Configuration flow

After completing the prerequisites, configure the workflow in three main steps.
  1. Identity provider integration (Entra ID): Connect Entra ID and link your apps to services.
  2. Configure automation mapping: Set up the mapping with Microsoft Entra ID.
  3. Create and publish the workflow: Create the workflow from the template. Then set the conditions, services, apps, and notifications.

How the workflow runs

The template runs the following steps from top to bottom. Under “Services to delete accounts from”, App Unassignment follows Entra ID. App Unassignment runs after the Entra ID deprovision.

Steps to configure offboarding via Entra ID

  1. Go to Automation > [Create workflow] > [Offboarding via Entra ID (App Unassignment)]. The Offboarding via Entra ID (App Unassignment) automation template card
  2. On the builder screen, click “1. Event Trigger” and set “Execution Schedule”. The template runs the workflow 1 day after the contract end date. Execution Schedule on the 1. Event Trigger screen, set to 1 day after the contract end date
  3. Click “2. Conditions” and set the conditions for target employees. The template targets full-time employees. The available items are the same as in “2. Conditions” in Configure an offboarding workflow. The 2. Conditions screen with the contract end date and employee type set
  4. Under “3. Services to delete accounts from”, set up Microsoft Entra ID.
    1. Click the Microsoft Entra ID step to open its “Settings” panel on the right. Select the workspace name from the “Service settings - Workspace name” dropdown. The Entra ID Settings panel with the workspace name field and the Deprovision Type, before you select a workspace
    2. Check the “Deprovision Type”. The available types depend on the service, and unavailable types are grayed out. If you select none here, the deprovision type set on the connection applies.
      If you can select “Delete” and do so, the Entra ID account and its data are deleted. For the difference between disabling and deleting, see Disable and delete Entra ID users.
      The Deprovision Type with Delete selected as an example, after you select a workspace
    3. In the same group, click “App Unassignment” and set the following items.
      If “No managed apps are available. Add apps to this identity provider before configuring this action.” appears, first link your apps to services in Identity provider integration (Entra ID).
      The App Unassignment settings with the Identity provider workspace field
  5. Click “4. Notification”, click [+ Add Notification], and set the notification method: Slack or Email. The steps are the same as “4. Notification” in Configure an offboarding workflow. The + Add Notification button under 4. Notification
  6. After all settings are complete, all checks in the builder turn green. Click [Publish] or [Dry Run]. For details on dry runs, see Dry-run a workflow. In a dry run, the App Unassignment result reads “Removed the app assignment from the IdP account”. The Dry Run and Publish buttons and a green check highlighted
  7. The “Confirm workflow automation settings” screen appears. Enter the workflow name and click [Publish]. Note: You cannot use a name that is already registered. The workflow name field on the Confirm workflow automation settings screen
  8. When “Workflow has been published” appears, click [OK]. The Workflow has been published message

Deactivate and delete on different days

You can deactivate and delete the Entra ID account of an offboarded employee on different days. Set deactivation to n days after the contract end date and deletion to n+30 days after it. Each workflow then runs on its own day. These steps apply when Entra ID is set as the employee master. If Google Workspace is the employee master, you can create two workflows in the same way. A single workflow has no setting to wait after deactivating an account and then delete it. Create two workflows with different execution schedules. The 30 in n+30 is the number of days you keep the account after deactivation. Change it to match how long you keep the account. If Entra ID is not set as the employee master, deactivation unlinks the account from the employee. Later syncs do not restore the link. The deletion workflow then fails because it finds no account. You cannot delete the account this way.
  1. Create the deactivation workflow by following Steps to configure offboarding via Entra ID.
    • Set “Execution Schedule” in “1. Event Trigger” to n days after the contract end date.
    • In the Entra ID step, select Deactivate for “Deprovision Type”.
    Timing of 1 day after the contract end date, with Deactivate selected in the Entra ID step
  2. Create the deletion workflow in the same way.
    • Set “Execution Schedule” in “1. Event Trigger” to n+30 days after the contract end date.
    • Use the same “2. Conditions” as the deactivation workflow.
    • In the Entra ID step, select Delete for “Deprovision Type”.
    • Keep App Unassignment the same as in the deactivation workflow. Apps already unassigned by the deactivation workflow do not cause a failure.
    If you select a type that differs from the connection, a message shows that the setting is customized for this action. Timing of 30 days after the contract end date, with Delete selected and the customized message
  3. Give the two workflows different names, and publish both.
  • The deletion workflow deletes the Entra ID account linked to the employee in Admina. If Entra ID is set as the employee master, it can also delete a deactivated account. Between deactivation and the next sync, the account is temporarily unlinked from the employee. Run the deletion workflow well after the deactivation workflow. Do not unlink the Entra ID account from the employee until the deletion workflow runs. A Global Administrator account cannot be deleted, so the step fails.
  • If you select no Deprovision Type in the Entra ID step, the deprovision type set on the connection applies. If you select the same type as the connection, later changes to the connection apply to the workflow too. If the connection uses Delete, select Deactivate in the deactivation workflow.
  • A dry run actually deactivates or deletes the Entra ID account of the selected employee. For how long you can restore a deleted account, see Disable and delete Entra ID users.

Messages shown when you save or publish

For the messages shown when you save or publish, see Check Entra ID assignment status and errors. You cannot delete the Entra ID step of the template. To build a workflow without Entra ID, create it from scratch. For details, see Create a workflow from scratch.

Check the results

When the workflow runs, it requests the unassignment for each selected app.
  • If one app fails, the unassignments for the other apps continue.
  • An app the employee is not assigned to does not fail. The workflow completes without any change for that app.
  • App Unassignment does not delete the Entra ID account itself. The Deprovision Type of the Entra ID Deprovision step decides what happens to the account.
Even after you unassign an app, the account on the app side may remain. To check “Unassigned apps - needs review”, see Check Entra ID assignment status and errors. You can check the results on the Runs and Logs tabs. For when the workflow runs, see Onboarding and offboarding automation flow.
Last modified on November 16, 2026