Skip to main content

After this article

You’ll be able to configure Lumos to automatically suspend employee accounts when they go on extended leave and reactivate them upon their return, without losing any of their access permissions.

Overview

When employees take extended leave (parental leave, sabbatical, medical leave, etc.), you may want to disable their accounts for security purposes without revoking their access. This ensures that when they return, all their previous access is automatically restored without requiring manual re-provisioning. This guide shows you how to set up this “OnLeave” workflow using Lumos Access Policies and AppStore Permission Overrides.

How It Works

The OnLeave workflow works as follows:
  1. Going on leave: When an employee’s “on-leave” status changes to “yes”, an Access Policy triggers a Permission Override that suspends their account
  2. Returning from leave: When their status changes back to “no”, the policy condition becomes false, triggering the deprovisioning workflow, which reactivates the account
Important: The logic is intentionally “backwards”: the provisioning action suspends the account, and the deprovisioning action reactivates it. This prevents access from being revoked entirely.

Prerequisites

Before you begin, ensure you have:
  • An identity attribute in your source of truth (e.g., Okta) to track leave status. Map it as a custom attribute in Settings → Source of Truth, and check that it shows on the identity in Lumos before you build the policy. See Custom Attributes in Lumos.
  • The Lumos Admin role. See Lumos Roles.
  • The application(s) you want to manage (e.g., Okta) connected to Lumos, with an integration that supports suspending and activating accounts

Configuration Steps

Step 1: Set Up the Identity Attribute

In your identity provider (e.g., Okta), create a profile attribute to track leave status:
  • Attribute name: on-leave (or similar)
Important: use string values, not booleans.
  • Do NOT use: Boolean true/false or numeric 1/0 values
  • Use instead: String literals like "yes" or "no"
Why? Lumos drops falsey values (false, 0) when it syncs the attribute, so they show as empty and the policy can’t match them. String literals avoid this issue. This is a known limitation.

Step 2: Create a Permission Override in AppStore

Navigate to AppStore and select the application you want to configure (e.g., Okta):
  1. Click Create Permission Override
  2. Name it “Disable Account” (or similar)
  3. Configure the workflows:
Provisioning Workflow (when someone goes on leave):
  • Action: Suspend Account (or “Deactivate User” depending on your app)
  • This action runs when the Access Policy condition is true
Deprovisioning Workflow (when someone returns):
  • Action: Activate Account (or “Activate User”)
  • This action runs when the Access Policy condition becomes false
  1. Save the Permission Override
Screenshot 2026-02-16 at 4.35.28 PM.png

Step 3: Create an Access Policy

Navigate to Access Policies and create a new policy:
  1. Policy Name: “On Leave - Disable Accounts” (or similar)
  2. Application: Select the same application from Step 2
  3. Permission: Select the “Disable Account” Permission Override you created
  4. Condition: Set up the trigger condition:
    • Attribute: on-leave (or whatever you named your identity attribute)
    • Operator: equals
    • Value: yes
  5. Save the Access Policy
You only need one Permission Override and one Access Policy per application. The policy applies to every identity whose on-leave value is yes, so a wrong value suspends that person’s account on the next sync. Removing the policy doesn’t reactivate anyone. Lumos doesn’t reverse access when you edit, deactivate, or delete an access policy. Anyone the policy already suspended stays suspended, even if their on-leave value changes to no later. Before you remove the policy, set everyone currently on leave back to no and let the reactivation run, or reactivate their accounts by hand afterwards.

How to Test

Test 1: Going on Leave

  1. In your identity provider, change an employee’s on-leave attribute to yes
  2. Sync the identity provider in Lumos. Go to Integrations, find your identity provider, click Sync, then the option to sync its users (for example, Sync Okta Users).
  3. Wait for the sync to complete.
  4. Run an identity sync from your source of truth. Go to Settings > Source of Truth and click Sync.
  5. Verify the account is suspended. Go to the employee’s identity page in Lumos and check that their account status shows as Suspended.

Test 2: Returning from Leave

  1. Change the employee’s on-leave attribute back to no
  2. Sync accounts in Lumos (as above)
  3. Run an identity sync from your source of truth. Go to Settings > Source of Truth and click Sync.
  4. Verify the account is reactivated:
    • The employee’s identity should show as Active.
    • Check the Activity Timeline for the mover event.
    • You should see the activate action from your Permission Override’s deprovisioning workflow (Activate Account or Activate User, depending on the app).
Note: In both directions, after syncing accounts you must also sync your source of truth. That identity refresh is what triggers the policy to suspend or reactivate the user.

Understanding the Activity Timeline

When reviewing the employee’s activity timeline in Lumos, you’ll see: Going on leave:
  • An event from the access policy, where the Permission Override provisions the “Disable Account” permission
  • Result: Account suspended
Returning from leave:
  • A mover event, where the Permission Override’s deprovisioning workflow runs its activate action (Activate Account or Activate User)
  • Result: Account reactivated with all previous access intact

Expanding to Multiple Applications

To implement this workflow across multiple applications:
  1. Create a separate Permission Override in each app’s AppStore configuration
  2. Create a separate Access Policy for each app
  3. All policies can use the same on-leave identity attribute as the trigger
This modular approach provides flexibility to control which applications should be suspended during leave.

Troubleshooting

Problem: The policy isn’t triggering when I change the attribute Solutions:
  • Verify you’re using string values ("yes"/"no"), not booleans
  • Ensure you’ve synced both the identity provider accounts AND the source of truth
  • Check that the attribute name in your policy exactly matches the attribute in your identity provider
Problem: The account is suspended but not reactivated on return Solutions:
  • Make sure you’ve synced the source of truth after syncing accounts. This triggers the identity refresh
  • Verify the deprovisioning workflow in your Permission Override has an “Activate” action configured
Problem: Access was revoked instead of just suspended Solutions:
  • Check your Permission Override configuration: you should NOT have any “revoke access” actions
  • The provisioning step should ONLY suspend/deactivate the account
  • The deprovisioning step should ONLY activate the account

Need Help?

If you have any questions or need assistance configuring the OnLeave workflow, please contact your Lumos administrator or reach out to support@lumos.com.