Back to Resources

Level Verified

Logout All Users Automation

Created by

Level

Type

Automation

Category

Security

Platforms
WindowsApple iOSLinux

Problem Overview

In shared or public device environments, lingering user sessions pose security risks. This automation ensures that no unauthorized users remain logged in.

Description

This automation forcefully logs out all users on a device. By terminating all sessions, it prevents unauthorized access and enforces compliance with device usage policies.

Preview

Logout All Users Automation

Use Cases

  • Securing shared devices in public environments.
  • Resetting devices after use by multiple users.
  • Enforcing user session policies in sensitive areas.

Recommendations

  • Test the automation in a non-production environment to confirm session termination behavior.
  • Notify users to save their work before running the automation.

FAQ

  • Can this exclude specific users?
    By default, no, all logged-in users will be logged out. You could modify the script to exclude users if desired.
  • Will the device reboot after logging out users?
    No, the device remains on, but all sessions are terminated.

Included with this Automation:

Below is a list of what you can expect to find when importing this Automation.

Script details:

The following data and settings will be imported with your script.

Triggers

  • Manual
  • Tag Applied

Actions

  • Notify User
  • Delay
  • Run Script
  • Create Alert
  • Remove Tags

Tags

  • Logout
Import into Level

Related resources

Explore more automations, scripts, and policies to further enhance your IT operations.

View all resources