Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

Although Luma provides many automation workflow, in Luma supports a variety of Automation Workflow. In this article, you will learn how to configure Active Directory related Automation Workflows an Automation Workflow related to Powershell Service Configuration as an example.

Overview

You can perform these workflows related to Active Directory on an Active Directory server (on-premise). The workflows are listed below.:

Out-of-the-box Workflows available

...

 

The OOTB workflows are available on Luma Automation page on the Workflows tab as shown below.

Image Removed

Out-of-the-box Operations available

If you want to create your own workflows for Active Directory, use the following out-of-the-box Operations and customize them as per your need.

...

Below are the ready-to-use, Out-of-the-box (OOTB) Powershell workflows that you can directly use.

...

. You can add these Workflow Services to your Skill as Skill fulfillment and execute the workflow. 

No.CategoryWorkflow ServiceDescriptionInput ParametersExample
1PowershellLdap DeleteUserDeletes the AD user from LDAPUpdate Message On successMessage to be displayed on deleting the user 
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP SAM Account Name
2PowershellLdap DeleteGroupDeletes the Group from LDAPUpdate Message On successMessage to be displayed on deleting the group
Update Message On FailureMessage to be displayed if an error occurred.
Group SAM Account NameLDAP Group SAM Account Name
3PowershellLdap SearchUserSearch for the user in LDAPUpdate Message On successMessage to be displayed on success
Update Message On FailureMessage to be displayed if an error occurred.
FilterFilter criteria for the search
4PowershellLdap ExistsUserFind if the user already exists in LDAPUpdate Message On successMessage to be displayed on success
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP SAM Account Name
5PowershellLdap Change PasswordResets AD user password for a given login name
 AD - Enable AD
PasswordNew Password
Update Message On successMessage to be displayed on successful password change
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP SAM Account Name
SMS TOPhone number to which the Self Service Password Reset service sends SMS.
SMS BodySpecify the SMS message to be sent when changing the password
6PowershellLdap enable UserEnables the AD user
 AD - Disable AD  AD - Create AD UserCreates
Update Message On successMessage to be displayed on enabling the user
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP SAM Account Name
7PowershellLdap disable UserDisables the AD user
 AD - Delete AD UserDeletes the AD user from Active Directory
Update Message On successMessage to be displayed on disabling the user
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP SAM Account Name
8PowershellLdap change password at logon 



Resets AD user password for a given login name at logonPasswordNew Password
Update Message On successMessage to be displayed on successful password change
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP SAM Account Name
SMS TOPhone number to which the Self Service Password Reset service sends SMS.
SMS BodySpecify the SMS message to be sent when changing the password
9PowershellLdap create UserCreates a new user in Active Directory
 AD - Create AD
PasswordPassword for the new user account
Update Message On successMessage to be displayed on successful creation of user in LDAP
Update Message On FailureMessage to be displayed if an error occurred.
First NameUser's first name
Last NameUser's last name
Login NameUser's login name
User Principal Name
Employee idUser's Employee id
Path
10PowershellLdap Unlock User Unlocks Active Directory (AD) userUpdate Message On successMessage to be displayed on success
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP Account Name to unlock
11PowershellLdap create GroupCreates New Group in Active directory for that AD domain
 AD - Add AD User to GroupAdds user to a group

Following is the list of workflow services:

Image Removed

Active Directory Service Configuration

...

Update Message On successMessage to be displayed on success
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP SAM Account Name for Group
Path
Group NameNew Group name
Group CategoryGroup Category
Group ScopeGroup scope
DescriptionGroup Description
12PowershellLdap add User To GroupAdds a user to a groupUpdate Message On successMessage to be displayed on success
Update Message On FailureMessage to be displayed if an error occurred.
Group SAM Account NameLDAP Group SAM Account Name 
User SAM Account NameLDAP User SAM Account Name 
13PowershellAzure execute Powershell ScriptExecutes the Powershell script in the fileUpdate Message On SuccessMessage to be displayed on the successful execution of Powershell script.
Update Message On FailureMessage to be displayed if an error occurred.
File PathPowerShell script file absolute path.

Note: To use the operation, the PowerShell script must be available on the PowerShell machine.
File ParamsParameters required to execute the shell script.

Using Service Workflow in a Skill

Let us look at an example using the Automation workflow service 'Ldap enable User'.

The 'LDAP enable User' Workflow Service enables an end-user in LDAP using a PowerShell script. Follow the below steps to configure and use the workflow service:

 

Table of Contents
minLevel2

Step 1: Setup Service Configurations

Service Configurations store the information used to connect to the system for automation workflows. Using the Automation Service Configurations page in ISMLuma Skill Builder, you can specify the required login credentials for the specific service to which you want to connect to. For Active Directory, you must specify the AD Server details, Username, Password, Domain Path, Email Domain. Navigate to Image Removed Automation icon. On the Automation page, click the .

Click on Image Added Automation icon and navigate to Automation →  Service Configurations tab.

Following is the list of service configurations:
Image Removed

Image Added

For any Active Directory 'Ldap enable User' Workflow, you need to update the following Service Configurations.

  1. Active Directory Configuration
  2. SA Default Configurations
  3. Powershell Configuration- The configuration is used to execute the PowerShell script to enable a user in LDAP. To use Powershell, the following configurations are required: 

    config.powershell.passwordRefers to the machine or environment password where you can execute PowerShell or winrm service is running.
    config.powershell.domainRefers to the machine or environment windows domain name where you can execute PowerShell or winrm service is running.
    config.powershell.usernameRefers to the machine or environment username where you can execute PowerShell or winrm service is running.
    config.powershell.addressRefers to the machine or environment address where you can execute PowerShell or winrm service is running.


  4. Luma 1.x Configurations- To use the workflow service in Luma Virtual Agent. To use Luma 2.x, the following configurations are required: 

    config.luma1x.urlThis is the URL to the Luma 1.x environment you want to connect to.
    config.luma1x.luma.api.access.keyRefers to the API access key created in Luma to allow a third-party system to connect to your tenant.


For more information refer to Out-of-the-box Automation Operations and Workflows.

Mapping Fields

Following are the mapping fields available in Luma for each operation in Active Directory. The data for these fields will be received from the user inputs.

The following table lists which input fields of Automation Workflow can be mapped to the attributes.

For example: Administrator may want to Disable an AD User. The skill prompts the administrator to enter the user_name of the user whose AD account needs to be disabled as shown below.

Image Removed

The data from this attribute needs to be passed to the Automation Workflow. This relationship is configured when the Automation Workflow is associate to a skill. 

Info
titleNote

requestor input field is common for all workflows.

...

login_name

...

Step 2: Using the Workflow Service in SKill

The next step is to create a skill in Luma Skill Builder to enable a user in LDAP. Add 'Ldap enable User' Workflow to the skill fulfillment. The Workflow requires the following parameters

Ldap enable UserPowershellEnables the AD userUpdate Message On successMessage to be displayed on enabling the user
Update Message On FailureMessage to be displayed if an error occurred.
SAM Account NameLDAP SAM Account Name

Map the parameters that require user inputs to the attributes in skill. Add attribute 'username' as mandatory input in Conversation Parameters section of the skill and map it to the input field 'SAM Account Name' for Automation Workflow in Skill Fulfillment.

When the skill is executed, Luma prompts the user to enter the user name to be enabled in LDAP. The user input is saved in the 'username' attribute and passed to the Automation Workflow, which in turn enables the account in AD.

Image Added