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:- Going on leave: When an employee’s “on-leave” status changes to “yes”, an Access Policy triggers a Permission Override that suspends their account
- Returning from leave: When their status changes back to “no”, the policy condition becomes false, triggering the deprovisioning workflow, which reactivates the account
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)
- Do NOT use: Boolean
true/falseor numeric1/0values - Use instead: String literals like
"yes"or"no"
Step 2: Create a Permission Override in AppStore
Navigate to AppStore and select the application you want to configure (e.g., Okta):- Click Create Permission Override
- Name it “Disable Account” (or similar)
- Configure the workflows:
- Action: Suspend Account (or “Deactivate User” depending on your app)
- This action runs when the Access Policy condition is true
- Action: Activate Account (or “Activate User”)
- This action runs when the Access Policy condition becomes false
- Save the Permission Override

Step 3: Create an Access Policy
Navigate to Access Policies and create a new policy:- Policy Name: “On Leave - Disable Accounts” (or similar)
- Application: Select the same application from Step 2
- Permission: Select the “Disable Account” Permission Override you created
-
Condition: Set up the trigger condition:
- Attribute:
on-leave(or whatever you named your identity attribute) - Operator:
equals - Value:
yes
- Attribute:
- Save the Access Policy
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
- In your identity provider, change an employee’s
on-leaveattribute toyes - 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).
- Wait for the sync to complete.
- Run an identity sync from your source of truth. Go to Settings > Source of Truth and click Sync.
- 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
- Change the employee’s
on-leaveattribute back tono - Sync accounts in Lumos (as above)
- Run an identity sync from your source of truth. Go to Settings > Source of Truth and click Sync.
- 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).
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
- 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:- Create a separate Permission Override in each app’s AppStore configuration
- Create a separate Access Policy for each app
- All policies can use the same
on-leaveidentity attribute as the trigger
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
- 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
- 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