uipath-cli
latest
false
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath CLI 用户指南
uip platform users通过“许可证会计”管理每个用户的许可证捆绑分配。直接将捆绑包分配给目录用户,列出用户的当前租约(以及每个捆绑包来自直接分配还是组规则),以及查看帐户级别用户捆绑包可用性。
大纲
uip platform users licenses <verb> [options] [<user>]
uip platform users licenses <verb> [options] [<user>]
动词
| 动词 | 用途 |
|---|---|
set | 直接将用户捆绑包许可证分配给目录用户。 |
get | 列出目录用户当前拥有的用户捆绑包租户,以及每个租户的来源。 |
available | 获取用户捆绑包许可证的帐户级别摘要(总计、已分配、可用)。 |
用户分辨率
set和get接受<user>位置参数,即名称或电子邮件前缀。CLI 通过“开头为”匹配搜索本地和目录用户,并且只需要一个匹配项:
- 无匹配项 →
"No directory user found matching '<input>'."出错。 - 多个匹配项 → 出错。最多可列出 10 个候选对象,以便您可以优化输入。
UIP Platform 用户许可证已设置
向目录用户分配用户捆绑包许可证。--input中的捆绑包将替换用户直接分配的捆绑包;从组规则继承的捆绑包不受此命令的影响。
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<user> | 是 | 用户标识符(名称或电子邮件前缀;必须与一个目录用户完全匹配)。 |
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--input | 路径 | 必填 | 包含所需用户许可证分配的 JSON 文件的路径,例如[{"code":"RPADEVPRONU"},{"code":"ATTUNU"},{"code":"TSTNU"}] 。 |
--organization | 帐户 ID | 会话默认值 | 组织帐户 GUID。覆盖从当前登录解析解析的组织。 |
示例
uip platform users licenses set "dan.dinu@uipath.com" \
--input ./user-bundles.json
uip platform users licenses set "dan.dinu@uipath.com" \
--input ./user-bundles.json
user-bundles.json:
[
{ "code": "RPADEVPRONU" },
{ "code": "ATTUNU" },
{ "code": "TSTNU" }
]
[
{ "code": "RPADEVPRONU" },
{ "code": "ATTUNU" },
{ "code": "TSTNU" }
]
数据形状(--输出 json)
{
"Code": "UserLicensesSet",
"Data": [
{ "code": "RPADEVPRONU", "name": "RPADEVPRONU" },
{ "code": "ATTUNU", "name": "ATTUNU" },
{ "code": "TSTNU", "name": "TSTNU" }
]
}
{
"Code": "UserLicensesSet",
"Data": [
{ "code": "RPADEVPRONU", "name": "RPADEVPRONU" },
{ "code": "ATTUNU", "name": "ATTUNU" },
{ "code": "TSTNU", "name": "TSTNU" }
]
}
uip platform 用户获取许可证
获取目录用户当前租用的用户捆绑包许可证。每一行都是一个租用的捆绑包;当租约继承自组规则时, source为"group"对于非组分配, "direct" 。
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<user> | 是 | 用户标识符(名称或电子邮件前缀;必须与一个目录用户完全匹配)。 |
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--organization | 帐户 ID | 会话默认值 | 组织帐户 GUID。覆盖从当前登录解析解析的组织。 |
示例
uip platform users licenses get "dan.dinu@uipath.com"
uip platform users licenses get "dan.dinu@uipath.com"
数据形状(--输出 json)
{
"Code": "UserLicenses",
"Data": [
{
"source": "direct",
"code": "RPADEVPRONU",
"name": "RPADEVPRONU",
"leasedAt": "2026-04-15T10:30:00.000Z"
},
{
"source": "group",
"code": "ATTUNU",
"name": "ATTUNU",
"leasedAt": "2026-04-20T08:15:00.000Z"
}
]
}
{
"Code": "UserLicenses",
"Data": [
{
"source": "direct",
"code": "RPADEVPRONU",
"name": "RPADEVPRONU",
"leasedAt": "2026-04-15T10:30:00.000Z"
},
{
"source": "group",
"code": "ATTUNU",
"name": "ATTUNU",
"leasedAt": "2026-04-20T08:15:00.000Z"
}
]
}
UIP Platform 用户许可证可用
获取用户捆绑包许可证的帐户级别摘要:每个捆绑包存在多少席位 ( total )、已分配多少席位 ( allocated ),以及剩余可用席位 ( available )。在分配之前使用此命令以确认容量。
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--organization | 帐户 ID | 会话默认值 | 组织帐户 GUID。覆盖从当前登录解析解析的组织。 |
示例
uip platform users licenses available
uip platform users licenses available
数据形状(--输出 json)
{
"Code": "UserLicensesAvailable",
"Data": [
{ "code": "RPADEVPRONU", "name": "RPADEVPRONU", "total": 100, "allocated": 42, "available": 58 },
{ "code": "ATTUNU", "name": "ATTUNU", "total": 50, "allocated": 50, "available": 0 }
]
}
{
"Code": "UserLicensesAvailable",
"Data": [
{ "code": "RPADEVPRONU", "name": "RPADEVPRONU", "total": 100, "allocated": 42, "available": 58 },
{ "code": "ATTUNU", "name": "ATTUNU", "total": 50, "allocated": 50, "available": 0 }
]
}
退出代码
请参阅退出代码。没有动词特定的覆盖。
相关命令
uip platform groups— 一次将捆绑包租赁给许多用户的组规则(与source: "group"中的users licenses get一起显示)。uip platform tenants— 租户级别的运行时和消耗性分配。
另请参阅
- 全局选项。