filescom-user-lifecycle-rules

SkillFiles & storage

A UserLifecycleRule represents a rule that applies to users based on their inactivity, state and authentication method.

Use filescom-user-lifecycle-rules in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add filescom-user-lifecycle-rules and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the filescom-user-lifecycle-rules skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

filescom-user-lifecycle-rulesStart free

What this skill tells your AI

The instructions your AI receives, as published by files-com/files-cli in skills/filescom-user-lifecycle-rules/SKILL.md and read by Ahel’s review.

A UserLifecycleRule represents a rule that applies to users based on their inactivity, state and authentication method.

The rule either disable or delete users who have been inactive or disabled for a specified number of days.

The authentication_method property specifies the authentication method for the rule, which can be set to "all", "all_non_sso", or a specific authentication method.

The rule can also include or exclude site and folder admins from the action.

A Custom Workspace rule applies only to users who belong to that Workspace. Default Workspace users with access to a Custom Workspace, including Workspace Administrators, remain covered by Default Workspace rules.

All subcommands also accept the flags documented in CONTEXT.md (--api-key, --format, --workspace-id, --debug, and the pagination flags --cursor / --per-page / --max-pages on list). Those are not repeated below.

Commands

files-cli user-lifecycle-rules list

List User Lifecycle Rules.

FlagTypeDescription
--sort-byobjectIf set, sort records by the specified field in either asc or desc direction. Valid fields are site_id and workspace_id.
--filterobjectIf set, return records where the specified field is equal to the supplied value. Valid fields are workspace_id.

files-cli user-lifecycle-rules find

Show User Lifecycle Rule.

FlagTypeDescription
--idint64User Lifecycle Rule ID. Required.

files-cli user-lifecycle-rules create

Create User Lifecycle Rule.

FlagTypeDescription
--apply-to-all-workspacesboolIf true, a Default Workspace rule also applies to users in all Custom Workspaces. Can only be enabled when workspace_id is 0.
--authentication-methodenumUser authentication method for which the rule will apply. Use all_non_sso to target every non-SSO authentication method with one rule. One of: all, password, sso, none, email_signup, password_with_imported_hash, password_and_ssh_key, all_non_sso.
--group-ids[]int64Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
--inactivity-daysint64Number of days of inactivity before the rule applies
--include-site-adminsboolIf true, the rule includes Site Administrators, who always belong to the Default Workspace. Can only be enabled when workspace_id is 0.
--include-folder-adminsboolIf true, the rule will apply to folder admins.
--namestringUser Lifecycle Rule name
--notify-usersboolIf true, users will be emailed before the rule disables or deletes them.
--partner-tagstringIf provided, only users belonging to Partners with this tag at the Partner level will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
--user-stateenumState of the users to apply the rule to (inactive or disabled). One of: inactive, disabled.
--user-tagstringIf provided, only users with this tag will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
--workspace-idint64Workspace whose users the rule applies to. 0 means the Default Workspace. A Custom Workspace rule applies only to users who belong to that Workspace, regardless of access granted to other users.

files-cli user-lifecycle-rules update

Update User Lifecycle Rule.

FlagTypeDescription
--idint64User Lifecycle Rule ID. Required.
--apply-to-all-workspacesboolIf true, a Default Workspace rule also applies to users in all Custom Workspaces. Can only be enabled when workspace_id is 0.
--authentication-methodenumUser authentication method for which the rule will apply. Use all_non_sso to target every non-SSO authentication method with one rule. One of: all, password, sso, none, email_signup, password_with_imported_hash, password_and_ssh_key, all_non_sso.
--group-ids[]int64Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
--inactivity-daysint64Number of days of inactivity before the rule applies
--include-site-adminsboolIf true, the rule includes Site Administrators, who always belong to the Default Workspace. Can only be enabled when workspace_id is 0.
--include-folder-adminsboolIf true, the rule will apply to folder admins.
--namestringUser Lifecycle Rule name
--notify-usersboolIf true, users will be emailed before the rule disables or deletes them.
--partner-tagstringIf provided, only users belonging to Partners with this tag at the Partner level will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
--user-stateenumState of the users to apply the rule to (inactive or disabled). One of: inactive, disabled.
--user-tagstringIf provided, only users with this tag will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
--workspace-idint64Workspace whose users the rule applies to. 0 means the Default Workspace. A Custom Workspace rule applies only to users who belong to that Workspace, regardless of access granted to other users.

files-cli user-lifecycle-rules delete

Delete User Lifecycle Rule.

FlagTypeDescription
--idint64User Lifecycle Rule ID. Required.

Signals

GitHub stars
46
Forks
4
Last commit
Oct 2026
Advanced
Item type
skill
Key
filescom-user-lifecycle-rules
Source
github.com/files-com/files-cli