- 概述
- Active Directory
- Amazon Web Services
- 发行说明
- 关于“Amazon Web Services”活动包
- 项目兼容性
- 权限列表
- 亚马逊网页服务作用域
- 配置机器人
- 创建实例
- 从启动模板中创建实例
- 按 ID 获取实例
- 获取实例列表
- 重新启动实例
- 启动实例
- 停止实例
- 终止实例
- 将卷附加到实例
- 创建实例快照
- 创建卷
- 创建卷快照
- 删除快照
- 删除卷
- 从实例中分离卷
- 获取实例卷
- 获取快照
- 获取卷
- 获取卷列表
- 向组中添加用户
- 创建组
- 删除组
- 遍历组
- 获取组
- 从组中删除用户
- 更新组
- 添加/删除内联策略
- 附加/分离托管策略
- 创建托管策略
- 删除托管策略
- 遍历托管策略
- 获取附加到托管策略的 IAM 身份
- 获取 IAM 身份内联策略
- 获取 IAM 身份托管策略
- 获取托管策略
- 更新托管策略
- 将角色添加到实例配置文件
- 创建角色
- 删除角色
- 遍历角色
- 获取角色
- 从实例配置文件中删除角色
- 更新角色
- 更改用户密码
- 创建用户
- 删除用户
- 遍历用户
- 遍历用户组
- 遍历组中的用户
- 获取用户
- 更新用户
- 配置存储桶的日志记录
- 配置存储桶的公共访问权限
- 创建存储桶
- 删除存储桶
- 删除存储桶策略
- 空存储桶
- 获取存储桶
- 获取存储桶列表
- 获取存储桶策略
- 设置存储桶策略
- 更新存储桶属性
- 复制对象
- 删除多个对象
- 删除单个对象
- 将对象下载到文件
- 针对存储桶中的各个对象
- 获取对象
- 获取对象 ACL
- 设置对象 ACL
- 从文件中上传对象
- 从文件夹中上传对象
- 运行 PowerShell 命令
- 亚马逊网页服务 API
- Amazon Web Services 操作指南
- Amazon WorkSpaces
- Azure
- 发行说明
- 关于 Azure 活动包
- 项目兼容性
- 附加到 Blob
- 附加虚拟机数据磁盘
- Azure 范围
- 配置机器人
- 复制 Blob
- 创建 Blob 容器
- 创建 IP 配置
- 创建网络接口
- 创建网络安全组
- 创建资源组
- 创建安全规则
- 创建存储帐户
- 创建表格
- 创建虚拟机
- 删除 Blob
- 删除 Blob 容器
- 删除 IP 配置
- 删除网络接口
- 删除网络安全组
- 删除资源组
- 删除行
- 删除密钥
- 删除安全规则
- 删除存储帐户
- 删除表格
- 删除虚拟机
- 分离虚拟机数据磁盘
- 将 Blob 下载到文件
- 对于每个 Blob 容器
- 对于容器中的每个 Blob
- 用于每个网络接口
- 用于每个网络安全组
- 对于表格中的每一行
- 用于每个安全警示
- 获取 Blob
- 获取 Blob 容器
- 获取 Blob 容器列表
- 获取 Blob 列表
- 获取磁盘
- 获取磁盘列表
- 获取 RDP 文件
- 获取资源组
- 获取资源组列表
- 获取行
- 按筛选器获取行
- 获取密码
- 获取存储帐户
- 获取存储帐户密钥
- 获取存储帐户列表
- 获取网络接口
- 获取网络安全组
- 获取网络安全组网络接口列表
- 获取安全警示
- 获取安全规则
- 获取安全规则列表
- 获取表格
- 获取表格列表
- 获取虚拟机
- 获取自定义虚拟机映像
- 获取自定义虚拟机映像列表
- 获取虚拟机磁盘列表
- 按发布者获取虚拟机映像
- 获取虚拟机列表
- 获取虚拟机网络安全组列表
- 获取虚拟机网络接口列表
- 插入行
- 重新生成存储帐户密钥
- 重新启动虚拟机
- 在虚拟机中运行脚本
- 设置 Blob 层
- 设置安全警示状态
- 关闭虚拟机
- 启动虚拟机
- 停止虚拟机
- 从文件上传 Blob
- Azure API
- Azure 操作指南
- Azure Active Directory
- 发行说明
- 关于 Azure Active Directory 活动
- 项目兼容性
- 列出组中的所有组
- 列出所有记录
- 列出生命周期策略
- 列出用户
- 列出组
- 获取组成员增量
- 获取用户角色
- 列出用户的所有组
- 列出角色中的用户
- 列出组中的用户
- 列出组的所有者
- 列出目录角色
- 列出直接下属
- 已将用户添加到组中
- 从组中删除的用户
- 向生命周期策略添加组
- 向组中添加成员
- 向角色添加成员
- 向组中添加所有者
- 分配许可证
- Azure AD 应用程序作用域
- Azure AD 委派作用域
- 创建分配组
- 创建生命周期策略
- 创建用户
- 删除组
- 删除生命周期策略
- 删除用户
- 适用于每个直接下属
- 遍历组
- 遍历组中的子组
- 遍历生命周期策略
- 遍历父组
- 遍历角色
- 遍历用户
- 遍历用户组
- 遍历组中的用户
- 遍历组所有者中的用户
- 遍历角色中的用户
- 遍历用户角色
- 按 ID 获取组
- 按名称获取组
- 获取管理器
- 获取用户
- 存在组
- 是生命周期策略中的组
- 是角色中的成员
- 是组的成员
- 是组所有者
- 从生命周期策略中删除组
- 删除许可证
- 从组中删除成员
- 从角色中删除成员
- 从组中删除所有者
- 重置密码
- 设置管理器
- 更新组
- 更新生命周期策略
- 更新用户
- 存在用户
- Azure Active Directory API
- Azure Active Directory 操作指南
- Azure Windows Virtual Desktop
- Citrix
- 桌面触发器
- Exchange Server
- Google Cloud
- Hyper V
- NetIQ eDirectory
- 系统中心
- VMware
创建新的 NetIQ eDirectory 用户,并使用 UiPath.NetIQeDirectory.Activities 将其添加到适当的部门和组。
以下示例说明了如何创建新的目录用户并将其添加到关联的部门和组。
该窗口会显示NetIQ EDirectory 作用域、创建用户、强制更改密码或将用户添加到组等活动。您可以在UiPath.NetIQeDirectory.Activities包中找到这些活动。
创建工作流
在创建以下工作流之前,需要安装以下包:
- UiPath.NetIQeDirectory.Activities
- UiPath.System.Activities
- UiPath.WebAPI.Activities
此自动化流程的构建方法如下:
-
打开 Studio,并新建一个默认命名为“主要”的“流程”。
-
Drag a Sequence container into the Workflow Designer and name it Main Sequence.
-
Select the Main Sequence container and create the following variable:
变量名称 变量类型 默认值 ldapServer字符串 ldapAdminUser字符串 ldapAdminPassword字符串 -
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
ldapServerinside 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:
变量名称 变量类型 默认值 userAttributesDt字符串 userInitialPassword字符串 userSAMAccountName字符串 userLocation字符串 userCN字符串 userExists布尔值 employeesGroup字符串 userDepartmentGroup字符串 -
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.
- 在“收件人”字段中添加“
userCN”变量。 - 在“值”字段添加表达式
FirstName+" "+LastName。 - Click the Add button to add another Assign row, and add the variable
userSAMAccountNamein the To field. - 在“值”字段添加表达式
(FirstName+"."+LastName).ToLower。 - Click the Add button to add another Assign row, and add the variable
userInitialPasswordin the To field. - 在“值”字段添加表达式
"1qazXSW@"。 - Click the Add button to add another Assign row, and add the variable
employeesGroupin the To field. - 在“值”字段添加表达式
"CN=Employees,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。
- 在“收件人”字段中添加“
-
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
userAttributesDtin 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. - 在“数据表”字段中添加“
userAttributesDt”变量。
- 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. - 在“数据表”字段中添加“
userAttributesDt”变量。
- 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. - 在“数据表”字段中添加“
userAttributesDt”变量。
- 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. - 在“数据表”字段中添加“
userAttributesDt”变量。
- 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. - 在“数据表”字段中添加“
userAttributesDt”变量。
- 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. - 在“数据表”字段中添加“
userAttributesDt”变量。
- Add the expression
-
Drag a Switch activity below the DT Set Extra Attributes Sequence container.
- Add the value
Departmentin 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.
- 在“收件人”字段中添加“
userLocation”变量。 - 在“值”字段添加表达式
"OU=Marketing,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。 - Click the Add button and add the variable
userDepartmentGroupin the To field. - 在“值”字段添加表达式
"CN=DepartmentMarketing,OU=Marketing,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。
- 在“收件人”字段中添加“
-
Add a Multiple Assign activity inside the Sales Case container.
- 在“收件人”字段中添加“
userLocation”变量。 - 在“值”字段添加表达式
"OU=Sales,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。 - Click the Add button and add the variable
userDepartmentGroupin the To field. - 在“值”字段添加表达式
"CN=DepartmentSales,OU=Sales,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。
- 在“收件人”字段中添加“
-
Add a Multiple Assign activity inside the Legal Case container.
- 在“收件人”字段中添加“
userLocation”变量。 - 在“值”字段添加表达式
"OU=Legal,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。 - Click the Add button and add the variable
userDepartmentGroupin the To field. - 在“值”字段添加表达式
"CN=DepartmentLegal,OU=Legal,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。
- 在“收件人”字段中添加“
-
Add a Multiple Assign activity inside the Accounting Case container.
- 在“收件人”字段中添加“
userLocation”变量。 - 在“值”字段添加表达式
"OU=Legal,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。 - Click the Add button and add the variable
userDepartmentGroupin the To field. - 在“值”字段添加表达式
"CN=DepartmentLegal,OU=Legal,OU=Employee-Onboarding,OU=Demo,DC=dev1,DC=local"。
- 在“收件人”字段中添加“
-
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
ldapServerin the LDAPServer field. - Add the variable
ldapAdminPasswordin the Password field. - Add the variable
ldapAdminUserin the Username field.
-
Drag a NetIQ eDirectory User Exists activity inside the NetIQ eDirectory Scope activity.
- Select the SAMAccountName option from the dropdown list.
- 在“值”字段中添加变量
userSAMAccountName。
-
Drag an If activity below the NetIQ eDirectory User Exists activity.
- 在“条件”字段中添加表达式“
Not userExists”。
- 在“条件”字段中添加表达式“
-
Drag a Sequence activity inside the Then container.
-
Drag a NetIQ eDirectory Create User activity inside the Seqence container.
- Add the variable
userLocationin the Location field. - Add the variable
userSAMAccountNamein the SAMAccountName field. - Add the variable
userInitialPasswordin the Password field.
- Add the variable
-
Drag a NetIQ eDirectory Force Password Change activity below the NetIQ eDirectory Create User activity.
- Add the variable
userDNin 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
userDNin the UserDistinguishedName field. - Add the variable
employeesGroupin 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
userDNin the UserDistinguishedName field. - Add the variable
userDepartmentGroupin 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.
- 在“行”字段中添加表达式“
"User Created: " + userSAMAccountName”。
-
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.
- 在“行”字段中添加表达式“
"User already exists for sAMAccountName: " + userSAMAccountName”。
-
Drag a Throw activity below the Log Message activity.
- In the Properties panel, select the Error option from the dropdown button.
- 在“行”字段中添加表达式“
"User already exists for sAMAccountName: " + userSAMAccountName”。
-
运行流程。 机器人将创建一个新的目录用户,并将其添加到关联的部门 OU 和组中。
以下是工作流在 UiPath Studio 中的外观:
这是运行工作流的结果: