---
title: Adding Devices Automatically
slug: kronpam-reference-guide-3-5-0/adding-devices-automatically
description: Learn how to use the LdapDeviceImportJob to synchronize devices and device groups from Active Directory with Kron PAM. This document provides step-by-step instructions on defining the job, adjusting the automated job period, and enabling it. Includes help
docTags: 
createdAt: 2022-08-03T10:44:12.000Z
---

There is a job (LdapDeviceImportJob) that runs on Kron PAM in order to synchronize devices and device groups from the Active Directory. This job runs periodically and integrates the changes made to the Active Directory with Kron PAM, since the job last ran, meaning any device added/removed from the inventory is directly added/removed from Kron PAM as well.
To define the LDAP Device Import Job:

1. Navigate to **Administration** > **Jobs Scheduler**.
2. Open the **Trigger List** tab.
3. Select **LdapDeviceImportJob** as the Job with **Add** button.
4. Fill in the **Trigger Name&#x20;**&#x61;nd **Cron Expression** fields.
5. To enable the job, select **Enabled** for the **Active** field and click **Add Triger**.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/1r6MWJxsm-iPiXwzE8iHE_image.png" size="58" width="666" height="544" position="center" caption="Add LDAP Device Import Job" showCaption="true"}

The automated job period can be changed by editing the cron expressions.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/d-fT_1w4EHzfPZZN7ChW0_image.png" size="74" width="818" height="280" position="center" caption="Edit LDAP Device Import Job" showCaption="true"}

