---
title: "ABots - Active Directory User Management 2"
slug: "abots-active-directory-user-management-2"
description: "Configure the ABots - Active Directory User Management - Groups and OU so that you automatically run user management processes in your active directory related to inclusion of users in groups in response to workflow tickets opened in SysAid."
updated: 2022-10-18T13:50:43Z
published: 2022-10-18T13:50:43Z
canonical: "documentation.sysaid.com/abots-active-directory-user-management-2"
excludeFromSearch: true
excludeFromExternalSearch: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ABots - Active Directory User Management - Groups and OU

Once configured, the Active Directory User Management - Groups and OU ABot can automatically run user management processes in your active directory related to inclusion of users in groups in response to workflow tickets opened in SysAid. This saves time and for both the IT admin and the employee who needs the update in the active directory.

Before you setup this ABot, ensure that your ABots platform is up and running. See the [SysAid ABot Guide](/v1/docs/abots-guide) for details.

![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/GroupsOUIcon(1).png)

## **Skills Included**

The Active Directory User Management - Groups and OU ABot includes the following skills:

- **Add a user to groups** - Adds users to specified groups in the active directory
- **Remove a user from groups** - Removes users from specified groups in the active directory
- **Move a user to an OU** - Moves a user to a specified organizational unit in the active directory

## New CI Type

To use the User Management Groups and OU ABot you need to add a new CI type called 'Active Directory Objects' to your CMDB. You can use this CI type for your OUs.

![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/Active%20Directory%20OU%20CI.png)

This enables you to select OUs from the Requested Organizational Unit field which is included in the Move a user to Organizational Unit template.

![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/OUABot.png)

## **Import Skills**

1. On the main [My Apps](/v1/docs/my-apps) page, in the Active Directory User Management  - Groups and OU ABot's icon, click ![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/image-1654626128160.png).
2. Click the slider.
3. Click **Import ABot Skills**.  
 The skills are imported in the background.

**![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/Groups_OU(1).png)**

## **Setup the Templates**

Each skill that you import includes a built-in template, ready to launch the automated process when a ticket is submitted. To set up the template you need to select values in all of the mandatory parameter mapping fields. Each skill has a different set of fields that are detailed below, but all require the relevant credentials. The credentials you select must have access to the machine that you want to run the automated process from and the machine must have access to all of the relevant agents. See the [ABot guide](/v1/docs/abots-guide) for information on how to prepare credentials so they can be selected in the parameter mapping for a skill.

You also will want to ensure that the template is available in the Automation panel so that the skill can be run from within another ticket.

**To set up a template**

1. In **Settings > Service Desk Templates**, locate the new template. It will have the same name as the imported skill.  
![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/image-1654625559334.png)
2. Open the template.
3. In the Request Details tab, ensure that the **Visible in automation panel** check box is selected.  
![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/image-1654625592863.png)
4. In the Launch ABot workflow tab, click ![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/image-1654625606563.png).
5. Select the fields you want for parameter mapping. See the Parameter mapping section for explanations of each field and which fields are mandatory for each skill.  
![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/image-1654625623043.png)
6. Click **OK**.

## **Using the ABot**

Once the ABot skills has been imported, and the templates have been set up, admins and end-users can easily use the ABot's skills to initialize and automatically run the common tasks.

**To add an ABot process from any ticket**

1. In the ticket form, click **Automations**.
2. From the **Select an Automation Process** drop-down list, select the ABot skill you want to run.
3. Click **Launch**.  
![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/image-1654625668468.png)
4. In the window that opens, enter the information in the required fields.
5. Click **Apply**.

**To run an ABot using a template**

1. Open a new request form.
2. From the template drop-down, select the template for the ABot skill you want to run.
3. Enter the information in the required fields.
4. Click **Apply**.

You can access a record for each process run by ABots in Settings > Automate Joe > [Process Monitor](/v1/docs/process-monitor).

## **Parameter Mapping**

Each skill has it's own parameter mapping that needs to be set up in the workflow template that you want to run the skill. To set up the template, see the Setup the templates section above.

**For any of the parameters, follow the following steps**

1. Select if you want the parameter to be populated from an SR field, an action item field, credential set, Automate Joe agent, group field, or a manual Velocity command.  
![](https://cdn.document360.io/52d3cb6c-cc81-43c2-b6f7-cbabcb449271/Images/Documentation/image-1654625743657.png)
2. In the Set Value column, select a field, or type input with the variable name of the field you want to populate.
3. Select**Get Text**if you want to output the field value's caption instead of the its key.
4. Click **OK**.

### Naming Convention Parameters

Naming convention parameters allow you to select how various email addresses, user names, and names are generated. If non of the available conventions meet the needs for a user you want to create, you can customize the convention for that user.

See the table below for the full list of available conventions for each parameter and further details on how to enter a custom convention.

**To enter a naming convention**

1. Select **Manual** in the Data Source column.
2. Enter the number corresponding to the naming convention you want to use. See the table below for reference.
3. (Optional) To create a custom template:
  1. Duplicate the template for this instance.
  2. Open the Parameter Mapping for the new duplicate template you just created.
  3. Enter **99** in the naming convention field.
  4. Enter the exact name as you want it to be created in the field for that parameter. See the table below for reference.

To better understand the parameters for each skill, see the reference tables below that detail the mandatory parameters that must be populated for each skill.

**Add a user to groups**

| **Parameter** | **Description** |
| --- | --- |
| **Required Parameters** |
| Execution Agent - Windows | The Windows agent that the ABot uses to run the process. |
| Execution Credentials - Windows | The credentials set to access the service on which you the ABot will execute the automated process. |
| Execution Agent - REST | The REST agent that the ABot uses to run the process. |
| Users to add | The field that contains the users to add to the groups. |
| Groups | The field that contains the groups that you want to add the users to. |
| **Output parameters** |
| Process exit code | Code that displays the result of the process run by the ABot. 0 - The process was successfully executed 1 - The process failed Select the field you where you want this information displayed. |
| Process last message | Message that states if the process was successful or not. Select the field you where you want this information displayed. |

**Remove a user from groups**

| **Parameter** | **Description** |
| --- | --- |
| **Required Parameters** |
| Execution Agent - Windows | The Windows agent that the ABot uses to run the process. |
| Execution Credentials - Windows | The credentials set to access the service on which you the ABot will execute the automated process. |
| Execution Agent - REST | The REST agent that the ABot uses to run the process. |
| Users to remove | The field that contains the users to remove from the groups. |
| Groups | The field that contains the groups that you want to remove the users from. |
| **Output parameters** |
| Process exit code | Code that displays the result of the process run by the ABot. 0 - The process was successfully executed 1 - The process failed Select the field you where you want this information displayed. |
| Process last message | Message that states if the process was successful or not. Select the field you where you want this information displayed. |
| Output removed groups count | The number of groups the user was removed from. Select the field you where you want this information displayed. |
| Output activity summary | A summary of the actions completed by this process. Select the field you where you want this information displayed. |

**Move a user to an OU**

| **Parameter** | **Description** |
| --- | --- |
| **Required Parameters** |
| Execution Agent - Windows | The Windows agent that the ABot uses to run the process. |
| Execution Credentials - Windows | The credentials set to access the service on which you the ABot will execute the automated process. |
| Execution Agent - REST | The REST agent that the ABot uses to run the process. |
| Users to move | The field that contains the users to move to the OUs. |
| Organizational Unit | The field that contains the OUs that you want to move the users to. |
| **Output parameters** |
| Process exit code | Code that displays the result of the process run by the ABot. 0 - The process was successfully executed 1 - The process failed Select the field you where you want this information displayed. |
| Process last message | Message that states if the process was successful or not. Select the field you where you want this information displayed. |
| Output activity summary | A summary of the actions completed by this process. Select the field you where you want this information displayed. |

## **Other ABots**

For information about other available ABots, see any of the following help pages:

- [Active Directory - User Management - On\Offboarding](/v1/docs/abots-active-directory-user-management)
- [Azure Active Directory - User Management - On\Offboarding](/v1/docs/abots-azure-user-management)
- [Azure Active Directory - User Management - Licensing](/v1/docs/abots-azure-ad-user-management-licensing)
- [Microsoft Exchange - User Management - Distribution Groups](/v1/docs/abots-microsoft-exchange-user-management)
