Workflow to lock an account after 180 days
How do I automatically lock a user account after 180 days of inactivity and send a warning email 7 days before?
To lock a FileCloud Server user account after 180 days without login and notify the user 7 days in advance, create two separate workflows: one that sends a warning email at 173 days of inactivity, and one that disables the account and notifies both the user and the admin at 180 days.
Environment
- Product: FileCloud Server
- Version: Any (verify parameter names against your installed release — see Notes)
- Platform: Any
What two workflows are required?
Create the following two workflows in FileCloud Server:
- A workflow that notifies the user after 173 days without login (7 days before the account lock).
- A workflow that disables the user account after 180 days without login and sends an email notification to both the user and the admin.
How do I create workflow 1: pre-lock notification?
- Log in to the FileCloud Admin Portal and navigate to Workflow.
- Click Create New Workflow.
- Set the trigger to a scheduled, time-based trigger (for example, daily).
- Add a condition: last login is greater than or equal to 173 days ago.
- Set the
user_account_typeparameter toFULL,GUEST, orLIMITED(see Notes below). - Set the
day_intervalparameter to control how frequently the notification is re-sent once the threshold is met (default: daily). - Add an action: send an email notification to the user stating that their account will be locked in 7 days due to inactivity.
- Save and enable the workflow.
How do I create workflow 2: account disable and notification?
- In the FileCloud Admin Portal, navigate to Workflow and click Create New Workflow.
- Set the trigger to a scheduled, time-based trigger (for example, daily).
- Add a condition: last login is greater than or equal to 180 days ago.
- Set the
user_account_typeparameter toFULL,GUEST, orLIMITED(see Notes below). - Add an action: disable the user account.
- Add an action: send an email notification to the user stating that their account has been locked due to inactivity.
- Add an action: send an email notification to the admin listing the accounts that were disabled.
- Save and enable the workflow.
Notes
- Set the
user_account_typeparameter toFULL,GUEST, orLIMITED. UsingUSER_ACCOUNT_ANYwill cause already-disabled accounts to receive notifications, which is not the intended behavior. - When the inactivity threshold is met, the notification is sent daily by default. Adjust the
day_intervalparameter to change how often it is sent. - The parameter names
day_intervalanduser_account_type, and the valuesFULL,GUEST,LIMITED, andUSER_ACCOUNT_ANY, are version-specific. Verify these identifiers against your installed version of FileCloud Server release notes.