- Overview
- Active Directory
- Release Notes
- About the Active Directory activity package
- Project Compatibility
- Active Directory Scope
- Get Object Distinguished Name
- Get Object Properties
- Get Objects by Filter
- Get Objects by LDAP Filter
- Is Object Member of Group
- Move Object
- Rename Object
- Update Object Properties
- Add Computer To Group
- Computer Exists
- Create Computer
- Delete Computer
- Get Computer Status
- Get Computers in Group
- Join Computer to Domain
- Remove Computer From Group
- Set Computer Status
- Unjoin Computer From Domain
- Add Group To Group
- Create Group
- Delete Group
- Group Exists
- Remove Group From Group
- Add User To Group
- Change User Password
- Create User
- Delete User
- Force Password Change
- Get Password Expiration Date
- Get User Expiration Date
- Get User Groups
- Get User Status
- Get Users in Group
- Remove User From Group
- Set User Expiration Date
- Set User Status
- User Exists
- Validate User Credentials
- Create Organizational Unit
- Delete Organizational Unit
- Active Directory APIs
- Active Directory how-to guides
- Amazon Web Services
- Release Notes
- About the Amazon Web Services activity package
- Project Compatibility
- Permissions List
- Amazon Web Services Scope
- Configure Robot
- Create Instance
- Create Instance From Launch Template
- Get Instance by ID
- Get Instance List
- Reboot Instance
- Start Instance
- Stop Instance
- Terminate Instance
- Attach Volume To Instance
- Create Instance Snapshots
- Create Volume
- Create Volume Snapshot
- Delete Snapshot
- Delete Volume
- Detach Volume From Instance
- Get Instance Volumes
- Get Snapshot
- Get Volume
- Get Volume List
- Add User To Group
- Create Group
- Delete Group
- For Each Group
- Get Group
- Remove User From Group
- Update Group
- Add/Remove Inline Policy
- Attach/Detach Managed Policy
- Create Managed Policy
- Delete Managed Policy
- For Each Managed Policy
- Get IAM Identities Attached to a Managed Policy
- Get IAM Identity Inline Policies
- Get IAM Identity Managed Polices
- Get Managed Policy
- Update Managed Policy
- Add Role to Instance Profile
- Create Role
- Delete Role
- For Each Role
- Get Role
- Remove Role From Instance Profile
- Update Role
- Change User Password
- Create User
- Delete User
- For Each User
- For Each User Group
- For Each User in Group
- Get User
- Update User
- Configure Logging for Bucket
- Configure Public Access to Bucket
- Create Bucket
- Delete Bucket
- Delete Bucket Policy
- Empty Bucket
- Get Bucket
- Get Bucket List
- Get Bucket Policy
- Set Bucket Policy
- Update Bucket Properties
- Copy Object
- Delete Multiple Objects
- Delete Single Object
- Download Object to File
- For Each Object in Bucket
- Get Object
- Get Object ACL
- Set Object ACL
- Upload Object From File
- Upload Objects From Folder
- Run Power Shell Command
- Amazon Web Services APIs
- Amazon Web Services how-to guides
- Amazon WorkSpaces
- Azure
- Release Notes
- About the Azure activity package
- Project Compatibility
- Append to Blob
- Attach VM Data Disk
- Azure Scope
- Configure Robot
- Copy Blob
- Create Blob Container
- Create IP Configuration
- Create Network Interface
- Create NSG
- Create Resource Group
- Create Security Rule
- Create Storage Account
- Create Tables
- Create VM
- Delete Blob
- Delete Blob Container
- Delete IP Configuration
- Delete Network Interface
- Delete NSG
- Delete Resource Group
- Delete Rows
- Delete Storage Account
- Delete Security Rule
- Delete Table
- Delete VM
- Detach VM Data Disk
- Download Blob To File
- For Each Blob Container
- For Each Blob in Container
- For Each Network Interface
- For Each NSG
- For Each Row In Table
- For Each Security Alert
- Get Blob
- Get Blob Container
- Get Blob Containers List
- Get Blob List
- Get Disk
- Get Disk List
- Get RDP Files
- Get Resource Group
- Get Resource Group List
- Get Row
- Get Rows By Filter
- Get Secrets
- Get Storage Account
- Get Storage Account Key
- Get Storage Account List
- Get Network Interface
- Get NSG
- Get NSG Network Interface List
- Get Security Alert
- Get Security Rule
- Get Security Rule List
- Get Table
- Get Table List
- Get VM
- Get VM Custom Image
- Get VM Custom Image List
- Get VM Disk List
- Get VM Image By Publisher
- Get VM List
- Get VM NSG List
- Get VM Network Interface List
- Insert Rows
- Regenerate Storage Account Key
- Restart VM
- Run Script In VM
- Set Blob Tier
- Set Security Alert State
- Shutdown VM
- Start VM
- Stop VM
- Upload Blob From File
- Azure APIs
- Azure how-to guides
- Azure Active Directory
- Release Notes
- About the Azure Active Directory activity package
- Project Compatibility
- Add Group to Lifecycle Policy
- Add Member To Group
- Add Member To Role
- Add Owner To Group
- Assign License
- Azure AD Application Scope
- Azure AD Delegated Scope
- Create Assigned Group
- Create Lifecycle Policy
- Create User
- Delete Group
- Delete Lifecycle Policy
- Delete User
- For Each Direct Report
- For Each Group
- For Each Group in Group
- For Each Lifecycle Policy
- For Each Parent Group
- For Each Role
- For Each User
- For Each User Group
- For Each User In Group
- For Each User in Group Owners
- For Each User in Role
- For Each User Role
- Get Group By Id
- Get Group by Name
- Get Manager
- Get User
- Group Exists
- Is Group in Lifecycle Policy
- Is Member In Role
- Is Member of Group
- Is Owner Of Group
- Remove Group From Lifecycle Policy
- Remove License
- Remove Member From Group
- Remove Member From Role
- Remove Owner From Group
- Reset Password
- Set Manager
- Update Group
- Update Lifecycle Policy
- Update User
- User Exists
- Azure Active Directory APIs
- Azure Active Directory how-to guides
- Azure Windows Virtual Desktop
- Release Notes
- About the Azure Windows Virtual Desktop activity package
- Project Compatibility
- Windows Virtual Desktop Scope
- Create Host Pool
- Add Virtual Machine to Host Pool
- Update Host Pool
- Get Host Pool
- Delete Host Pool
- For Each Host Pool
- Get Session Host
- For Each Session Host
- Update Session Host
- Delete Session Host
- For Each User Session
- Disconnect User Session
- Delete User Session
- Send Message to User Session
- Get Application Group
- For Each Application Group
- Assign Users and Groups to Application Group
- Remove Users and Groups From Application Group
- Create Workspace
- Update Workspace
- Get Workspace
- For Each Workspace
- Delete Workspace
- Azure Windows Virtual Desktop APIs
- Citrix
- Release Notes
- About the Citrix activity package
- Project Compatibility
- Citrix Scope
- Get Server List
- Get Storage Repositories
- Add Tag to VM
- Add VM to Folder
- Remove Tag From VM
- Remove VM From Folder
- Delete All VM Snapshots
- Delete VM Snapshot
- Get VM Snapshot List
- Revert VM to Snapshot
- Take VM Snapshot
- Create VM From Template
- Delete VM
- Get Template List
- Get VM by UUID
- Get VM List
- Power Off VM
- Power On VM
- Rename VM
- Restart VM
- Resume VM
- Suspend VM
- Citrix APIs
- Citrix activities how-to guides
- Desktop triggers
- Exchange Server
- Google Cloud
- Release Notes
- About the Google Cloud activity package
- Project Compatibility
- Google Cloud Scope
- Create Bucket
- Update Bucket Properties
- Get Bucket
- For Each Bucket
- Delete Bucket
- Get Object
- Delete Object
- Copy Object
- Upload Object From File
- Download Object to File
- For Each Object in Bucket
- Create Instance
- Create Instance From Template
- Get Instance
- For Each Instance
- Start Instance
- Stop Instance
- Reset Instance
- Delete Instance
- Configure Robot
- Run Script on Instance
- Get Project
- For Each Project
- Create Role
- Delete Role
- For Each Grantable Role
- For Each Role
- Get Role
- Undelete Role
- Update Role
- Get IAM Policy
- Set IAM Policy
- Get Secret Data
- Google Cloud APIs
- Google Cloud how-to guides
- Hyper V
- NetIQ eDirectory
- Release Notes
- About the NetIQ eDirectory activity package
- Project Compatibility
- NetIQ EDirectory Scope
- Add Object To Group
- Delete Object
- Get Object Distinguished Name
- Get Object Properties
- Get Objects by Filter
- Get Objects by LDAP Filter
- Is Object Member of Group
- Move Object
- Remove Object From Group
- Rename Object
- Update Object Properties
- Add Computer To Group
- Computer Exists
- Delete Computer
- Create Computer
- Get Computer Status
- Remove Computer From Group
- Set Computer Status
- Add Group To Group
- Create Group
- Delete Group
- Get Computers in Group
- Get Users in Group
- Group Exists
- Remove Group From Group
- Create Organizational Unit
- Delete Organizational Unit
- Add User To Group
- Change User Password
- Create User
- Delete User
- Force Password Change
- Get Password Expiration Date
- Get User Expiration Date
- Get User Groups
- Get User Status
- Remove User From Group
- Set User Expiration Date
- Set User Status
- User Exists
- Validate User Credentials
- NetIQ eDirectory APIs
- Employee On-boarding
- System Center
- VMWare
- Release Notes
- About the VMware activity package
- Project Compatibility
- VMware Scope
- Get Datastore
- Get Datastore List
- Get Host
- Get Host List
- Delete All VM Snapshots
- Delete VM Snapshot
- Get VM Snapshot List
- Revert VM to Snapshot
- Take VM Snapshot
- Configure Robot
- Create VM From Template
- Convert Template to VM
- Convert VM to Template
- Customize VM
- Delete VM
- Get VM
- Get VM List
- Power Off VM
- Suspend VM
- Run Program in VM
- Restart VM
- Rename VM
- Power On VM
- Move VM To Folder
- Migrate VM
- Get Template List
- Export OVF Template
- Deploy OVF Template
- Assign Tag to VM
- Remove Tag From VM
- Assign Tag to Folder
- Remove Tag From Folder
- Create Folder
- Get Folder
- Rename Folder
- Move Folder
- Delete Folder
- Mount Tools Installer
- Unmount Tools Installer
- Upgrade Tools
- VMWare activities how-to guides
Employee On-boarding
The example below explains how to create a new directory user and add it to the associated department and group.
It presents activities such as NetIQ EDirectory Scope, Create User, Force Password Change, or Add User To Group. You can find these activities in the UiPath.NetIQeDirectory.Activities package.
The following packages need to be installed before creating the below workflow:
- UiPath.NetIQeDirectory.Activities
- UiPath.System.Activities
- UiPath.WebAPI.Activities
This is how the automation process can be built:
- Open Studio and create a new Process named by default Main.
- Drag a Sequence container into the Workflow Designer and name it Main Sequence.
-
Select the Main Sequence container and create the following variable:
Variable Name
Variable Type
Default Value
ldapServer
String
ldapAdminUser
String
ldapAdminPassword
String
- Drag another sequence inside the Main Sequence container and name it Init Sequence.
-
Drag a Get Robot Asset activity inside the Init Sequence container.
- Add the variable
"LdapServer"
inside the Asset Name field. - Add the variable
ldapServer
inside the Asset value field.
- Add the variable
-
Drag a Get Robot Credentials activity below the Get Robot Asset activity.
- Add the variable
"LdapServerCredentials"
inside the Asset Name field.
- Add the variable
- Drag another sequence below the Init Sequence container and name it CreateUser Sequence.
-
Select the CreateUser Sequence container and create the following variable:
Variable Name
Variable Type
Default Value
userAttributesDt
String
userInitialPassword
String
userSAMAccountName
String
userLocation
String
userCN
String
userExists
Boolean
employeesGroup
String
userDepartmentGroup
String
- Drag another Sequence inside the CreateUser Sequence container and name it Set User Attributes Sequence
-
Drag a Multiple Assign activity inside the Set User Attributes Sequence container.
- Add the variable
userCN
in the To field. - Add the expression
FirstName+" "+LastName
in the Value field. - Click the Add button to add another Assign row, and add
the variable
userSAMAccountName
in the To field. - Add the expression
(FirstName+"."+LastName).ToLower
in the Value field. - Click the Add button to add another Assign row, and add
the variable
userInitialPassword
in the To field. - Add the expression
"1qazXSW@"
in the Value field. - Click the Add button to add another Assign row, and add
the variable
employeesGroup
in the To field. - Add the expression
"CN=Employees,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field.
- Add the variable
- Drag a Sequence container below the Multiple Assign activity and name it DT Set Extra Attributes Sequence.
-
Drag a Build Data Table activity inside the DT Set Extra Attributes Sequence container.
- In the Properties panel, add the variable
userAttributesDt
in the DataTable field.
- In the Properties panel, add the variable
-
Drag a Add Data Row activity below the Build Data Table activity.
- Add the expression
{"givenName",FirstName}
in the ArrayRow field. - Add the variable
userAttributesDt
in the DataTable field.
- Add the expression
-
Drag another Add Data Row activity below the previous Add Data Row activity.
- Add the expression
{"sn",LastName}
in the ArrayRow field. - Add the variable
userAttributesDt
in the DataTable field.
- Add the expression
-
Drag another Add Data Row activity below the previous Add Data Row activity.
- Add the expression
{"department",Department}
in the ArrayRow field. - Add the variable
userAttributesDt
in the DataTable field.
- Add the expression
-
Drag another Add Data Row activity below the previous Add Data Row activity.
- Add the expression
{"title",Title}
in the ArrayRow field. - Add the variable
userAttributesDt
in the DataTable field.
- Add the expression
-
Drag another Add Data Row activity below the previous Add Data Row activity.
- Add the expression
{"telephoneNumber",Telephone}
in the ArrayRow field. - Add the variable
userAttributesDt
in the DataTable field.
- Add the expression
-
Drag another Add Data Row activity below the previous Add Data Row activity.
- Add the expression
{"mail",Email}
in the ArrayRow field. - Add the variable
userAttributesDt
in the DataTable field.
- Add the expression
-
Drag a Switch activity below the DT Set Extra Attributes Sequence container.
- Add the value
Department
in the Expression field. - Click the Add new case field and add the value Marketing in the Case field.
- Click the Add new case field and add the value Sales in the Case field.
- Click the Add new case field and add the value Legal in the Case field.
- Click the Add new case field and add the value Accounting in the Case field.
- Add the value
-
Add a Multiple Assign activity inside the Marketing Case container.
- Add the variable
userLocation
in the To field. - Add the expression
"OU=Marketing,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field. - Click the Add button and add the variable
userDepartmentGroup
in the To field. - Add the expression
"CN=DepartmentMarketing,OU=Marketing,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field.
- Add the variable
-
Add a Multiple Assign activity inside the Sales Case container.
- Add the variable
userLocation
in the To field. - Add the expression
"OU=Sales,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field. - Click the Add button and add the variable
userDepartmentGroup
in the To field. - Add the expression
"CN=DepartmentSales,OU=Sales,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field.
- Add the variable
-
Add a Multiple Assign activity inside the Legal Case container.
- Add the variable
userLocation
in the To field. - Add the expression
"OU=Legal,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field. - Click the Add button and add the variable
userDepartmentGroup
in the To field. - Add the expression
"CN=DepartmentLegal,OU=Legal,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field.
- Add the variable
-
Add a Multiple Assign activity inside the Accounting Case container.
- Add the variable
userLocation
in the To field. - Add the expression
"OU=Legal,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field. - Click the Add button and add the variable
userDepartmentGroup
in the To field. - Add the expression
"CN=DepartmentLegal,OU=Legal,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"
in the Value field.
- Add the variable
-
Add a NetIQ eDirectory Scope activity below the Set user Attributes Sequence container.
- In the Properties panel, select the LDAP option from the dropdown list.
- Add the variable
ldapServer
in the LDAPServer field. - Add the variable
ldapAdminPassword
in the Password field. - Add the variable
ldapAdminUser
in the Username field.
-
Drag a NetIQ eDirectory User Exists activity inside the NetIQ eDirectory Scope activity.
- Select the SAMAccountName option from the dropdown list.
- Add the variable
userSAMAccountName
in the Value field.
-
Drag an If activity below the NetIQ eDirectory User Exists activity.
- Add the expression
Not userExists
in the Condition field.
- Add the expression
- Drag a Sequence activity inside the Then container.
-
Drag a NetIQ eDirectory Create User activity inside the Seqence container.
- Add the variable
userLocation
in the Location field. - Add the variable
userSAMAccountName
in the SAMAccountName field. - Add the variable
userInitialPassword
in the Password field.
- Add the variable
-
Drag a NetIQ eDirectory Force Password Change activity below the NetIQ eDirectory Create User activity.
- Add the variable
userDN
in the DistinguishedName field.
- Add the variable
-
Drag a NetIQ eDirectory Add User To Group activity below the NetIQ eDirectory Force Password Change activity.
- Add the variable
userDN
in the UserDistinguishedName field. - Add the variable
employeesGroup
in the GroupDistinguishedName field.
- Add the variable
-
Drag a NetIQ eDirectory Add User To Group activity below the previous NetIQ eDirectory Add User To Group activity.
- Add the variable
userDN
in the UserDistinguishedName field. - Add the variable
userDepartmentGroup
in the GroupDistinguishedName field.
- Add the variable
-
Drag a Log Message activity below the NetIQ eDirectory Add User To Group activity.
- Select the Info option from the dropdown list.
- Add the expression
"User Created: " + userSAMAccountName
in the Message field.
- Drag a Sequence activity inside the Else container.
-
Drag a Log Message activity inside the Sequence* container.
- Select the Error option from the dropdown list.
- Add the expression
"User already exists for sAMAccountName: " + userSAMAccountName
in the Message field.
-
Drag a Throw activity below the Log Message activity.
- In the Properties panel, select the Error option from the dropdown button.
- Add the expression
"User already exists for sAMAccountName: " + userSAMAccountName
in the Message field.
- Run the process. The robot creates a new directory user and adds it to the associated department OU and Group.
This is how the workflow should look in UiPath Studio:
This is the result of running the workflow: