Controlling Screen Lock
=======================

You can control the screen lock on your Mac OS devices which requires users to
authenticate upon wake from sleep.

Add the Agent Action to a Policy
--------------------------------

#. Go to **Policy** in the top panel.
#. Go to **Policy > Node Policy** in the left Policy panel.
#. Click the **desired Policy ID** in Node Policy window.
#. Find **Agent Action**. Click **Assign**.
#. Find **Control Screen Lock** in the **Available** section.
   Select and drag it into the **Selected** section.
#. Click **Add.**
#. Click **Update.**

Control Screen Lock
-------------------

#. Go to **Policy** in the top panel.
#. Go to **Policy > Node Policy > Agent Action** in the left Policy panel.
#. Find and click **Control Screen Lock** in the Agent Action window.

Under **General** section:

#. For **CWP Message**, add message to be displayed in accordance with the
   Policy.
#. For **Label**, add labels to help categorize your plugins with custom labels
   that appear in the "Description" field.

Under **Agent Actions** section:

#. For **Boolean Operator**, choose **AND** or **OR** to add optional
   conditions.
#. For **Settings**, click **Add** and select your optional conditions.
   **Criteria/Operator/Value**

Under **Plugin Settings** section:

#. For **Lock Screen Scan**, select **Off** to disable the collection of info
   on the configured Screen Lock.

#. For **Screen Lock Enforcement**, turn **On** enforce a Screen Lock.

   - **Waiting Time**, specify the time before the Screen Lock starts.
     (*minutes - hours*)
   - **User Waiting Time**, this will not apply if this time is longer than
     Waiting Time.

#. Click **Update.**