UiPath Documentation
uipath-cli
latest
false
Guide de l'utilisateur de UiPath CLI
Important :
Ce contenu a été traduit à l'aide d'une traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

uip ah categories, tags, collaborators, roles, users

Syntax and options for the Automation Hub category taxonomy, free-text tags, per-automation collaborators, the assignable role catalogue, and user accounts.

Categories are a hierarchical taxonomy automations are placed in; tags are free-text labels. Collaborators are the people working on one automation, each holding one or more roles — Automation Hub's assignable-role catalogue is also how uip ah users create grants tenant-wide access. See uip ah for shared concepts (projection/--all-fields, paged vs. unpaged lists) that apply to every verb here.

uip ah categories​

Read the category hierarchy and place automations in it.

Synthèse​

uip ah categories get [--all-fields]
uip ah categories update --file <json-file> [-y, --yes]
uip ah categories set <automation-id> --category-id <id>
uip ah categories get [--all-fields]
uip ah categories update --file <json-file> [-y, --yes]
uip ah categories set <automation-id> --category-id <id>

uip ah categories get​

Get the category hierarchy as one tree, with its level names. get, not list: the endpoint returns one nested document, not a paged collection — there's no --limit/--offset.

Options​
LongDescription
--all-fieldsReturn the raw payload instead of Levels/Categories.
Exemple​
uip ah categories get
uip ah categories get
Format des données (--sortie json)​
{
  "Code": "AhCategoriesGet",
  "Data": { "Levels": [{ "Id": 1, "Name": "Business Unit" }], "Categories": [{ "Id": 4, "Name": "Finance" }] }
}
{
  "Code": "AhCategoriesGet",
  "Data": { "Levels": [{ "Id": 1, "Name": "Business Unit" }], "Categories": [{ "Id": 4, "Name": "Finance" }] }
}

uip ah categories update​

Replace the whole category tree from a file. Automation Hub has no per-category create/delete — the tree is synced as one document.

Options​
LongValeur (Value)RequisDescription
--file <json-file>Chemin d'accèsouiJSON with the full category tree to sync, in the shape categories get returns.
-y, --yesDrapeauouiConfirm this replaces the entire tenant category tree. Required — the CLI never prompts.

An empty or clearly-malformed file is rejected client-side before the request is sent.

Exemple​
uip ah categories update --file ./categories.json --yes
uip ah categories update --file ./categories.json --yes
Format des données (--sortie json)​
{ "Code": "AhCategoriesUpdate", "Data": { "Status": "Synced" } }
{ "Code": "AhCategoriesUpdate", "Data": { "Status": "Synced" } }

uip ah categories set​

Assign one automation to a category.

Arguments​
NomRequisObjectif
<automation-id>ouiAutomation id.
Options​
LongValeur (Value)RequisDescription
--category-id <id>IntegerouiCategory id to assign.
Exemple​
uip ah categories set 20 --category-id 4
uip ah categories set 20 --category-id 4
Format des données (--sortie json)​
{ "Code": "AhCategoriesSet", "Data": { "AutomationId": 20, "CategoryId": 4 } }
{ "Code": "AhCategoriesSet", "Data": { "AutomationId": 20, "CategoryId": 4 } }

uip ah tags​

Set the tags on an automation.

uip ah tags set​

Replace an automation's tags with the given set — this replaces the whole tag list rather than merging (matching uip config set's replace semantics).

Arguments​
NomRequisObjectif
<automation-id>ouiAutomation id.
Options​
LongValeur (Value)RequisDescription
--tags <tag...>repeatableouiThe complete tag set for this automation.
Exemple​
uip ah tags set 20 --tags finance "quick win"
uip ah tags set 20 --tags finance "quick win"
Format des données (--sortie json)​
{ "Code": "AhTagsSet", "Data": { "AutomationId": 20, "Tags": ["finance", "quick win"] } }
{ "Code": "AhTagsSet", "Data": { "AutomationId": 20, "Tags": ["finance", "quick win"] } }

uip ah collaborators​

Manage who collaborates on an automation. Its own resource group rather than a verb on automations, so the standard CRUD verbs stay available for it.

Synthèse​

uip ah collaborators list --automation-id <id> [--limit <n>] [--offset <n>] [--all-fields]
uip ah collaborators create <automation-id> --user-id <id...> --role-id <id...>
uip ah collaborators delete <automation-id> --user-id <id...> --role-id <id...> [-y, --yes]
uip ah collaborators list --automation-id <id> [--limit <n>] [--offset <n>] [--all-fields]
uip ah collaborators create <automation-id> --user-id <id...> --role-id <id...>
uip ah collaborators delete <automation-id> --user-id <id...> --role-id <id...> [-y, --yes]

uip ah collaborators list​

Options​
LongValeur (Value)RequisDescription
--automation-id <id>IntegerouiAutomation to read (a query parameter on this endpoint, not a positional).
--limit <n> / --offset <n>IntegernonPaging, applied client-side (unpaged endpoint).
--all-fieldsDrapeaunonReturn the raw payload.
Exemple​
uip ah collaborators list --automation-id 20
uip ah collaborators list --automation-id 20
Format des données (--sortie json)​
{
  "Code": "AhCollaboratorsList",
  "Data": [
    { "Id": 1, "Email": "jane@acme.com", "FirstName": "Jane", "LastName": "Doe", "JobTitle": "Analyst", "Department": "Finance", "BusinessUnit": "EMEA", "IsActive": 1 }
  ]
}
{
  "Code": "AhCollaboratorsList",
  "Data": [
    { "Id": 1, "Email": "jane@acme.com", "FirstName": "Jane", "LastName": "Doe", "JobTitle": "Analyst", "Department": "Finance", "BusinessUnit": "EMEA", "IsActive": 1 }
  ]
}

uip ah collaborators create​

Add collaborators to an automation.

Arguments​
NomRequisObjectif
<automation-id>ouiAutomation id.
Options​
LongValeur (Value)RequisDescription
--user-id <id...>repeatableouiUser ids to add.
--role-id <id...>repeatableouiRole ids to grant every added user (applied to all of them — a per-user role split needs one call per user). Only active roles of type process are accepted; the endpoint rejects any other kind.

At least one --role-id is required — the endpoint rejects a collaborator entry with no role.

Exemple​
uip ah collaborators create 20 --user-id 3 --role-id 3
uip ah collaborators create 20 --user-id 3 --role-id 3
Format des données (--sortie json)​
{ "Code": "AhCollaboratorsCreate", "Data": { "AutomationId": 20, "UserIds": [3] } }
{ "Code": "AhCollaboratorsCreate", "Data": { "AutomationId": 20, "UserIds": [3] } }

uip ah collaborators delete​

Remove collaborator roles from users on an automation. The endpoint deletes role assignments rather than the collaborator record, so --role-id is required — strip every role a user holds and they stop being a collaborator.

Arguments​
NomRequisObjectif
<automation-id>ouiAutomation id.
Options​
LongValeur (Value)RequisDescription
--user-id <id...>repeatableouiUser ids to remove roles from.
--role-id <id...>repeatableouiRole ids to remove from each user.
-y, --yesDrapeauouiConfirmez cette opération irréversible. Requis — la CLI ne s'affiche jamais.
Exemple​
uip ah collaborators delete 20 --user-id 3 --role-id 3 --yes
uip ah collaborators delete 20 --user-id 3 --role-id 3 --yes
Format des données (--sortie json)​
{ "Code": "AhCollaboratorsDelete", "Data": { "AutomationId": 20, "UserIds": [3], "RoleIds": [3] } }
{ "Code": "AhCollaboratorsDelete", "Data": { "AutomationId": 20, "UserIds": [3], "RoleIds": [3] } }

uip ah roles​

Discover the Automation Hub roles that can be assigned. Read-only.

uip ah roles list​

Options​
LongDescription
--limit <n> / --offset <n>Paging, applied client-side (unpaged endpoint).
--all-fieldsReturn the raw payload.
Exemple​
uip ah roles list
uip ah roles list
Format des données (--sortie json)​
{
  "Code": "AhRolesList",
  "Data": [
    { "Id": 2, "Name": "System Admin", "Slug": "ah-system-admin", "Type": "service", "Description": "...", "IsActive": 1, "IsDefault": 0 }
  ]
}
{
  "Code": "AhRolesList",
  "Data": [
    { "Id": 2, "Name": "System Admin", "Slug": "ah-system-admin", "Type": "service", "Description": "...", "IsActive": 1, "IsDefault": 0 }
  ]
}

Slug is the value uip ah users create --role takes; Id/Type are what collaborators create --role-id filters on (only Type: "process" roles are accepted there).

uip ah users​

Manage Automation Hub users and their roles.

Synthèse​

uip ah users list [--search <text>] [--sort-by <field>] [--sort-order asc|desc] [--department <name>] [--business-unit <name>] [--location <name>] [--job-title <title>] [--invite-status <status>] [--role <slug>] [--limit <n>] [--offset <n>] [--all-fields]
uip ah users create --email <email> [write options...] --role-id <id...>
uip ah users update --email <email> [write options...]
uip ah users list [--search <text>] [--sort-by <field>] [--sort-order asc|desc] [--department <name>] [--business-unit <name>] [--location <name>] [--job-title <title>] [--invite-status <status>] [--role <slug>] [--limit <n>] [--offset <n>] [--all-fields]
uip ah users create --email <email> [write options...] --role-id <id...>
uip ah users update --email <email> [write options...]

uip ah users list​

Options​
LongValeur (Value)Description
--search <text>stringFree-text search.
--sort-by <field>stringField to sort on, e.g. user_email.
--sort-order <direction>asc|descChoisir l'ordre de tri.
--department <name> / --business-unit <name> / --location <name> / --job-title <title>stringScope filters.
--invite-status <status>stringOnly this invite status.
--role <slug>stringOnly users holding this role slug.
--limit <n> / --offset <n>IntegerPaging. Default --limit 20.
--all-fieldsDrapeauReturn the raw payload.
Exemple​
uip ah users list --department Finance --limit 20
uip ah users list --department Finance --limit 20
Format des données (--sortie json)​
{
  "Code": "AhUsersList",
  "Data": [
    { "Id": 3, "Email": "jane@acme.com", "FirstName": "Jane", "LastName": "Doe", "JobTitle": "Analyst", "Department": "Finance", "BusinessUnit": "EMEA", "Location": "Boston", "IsAdmin": 0, "IsActive": 1, "InviteStatus": 2, "AutomationCount": 3 }
  ],
  "Pagination": { "Returned": 1, "Limit": 20, "Offset": 0 }
}
{
  "Code": "AhUsersList",
  "Data": [
    { "Id": 3, "Email": "jane@acme.com", "FirstName": "Jane", "LastName": "Doe", "JobTitle": "Analyst", "Department": "Finance", "BusinessUnit": "EMEA", "Location": "Boston", "IsAdmin": 0, "IsActive": 1, "InviteStatus": 2, "AutomationCount": 3 }
  ],
  "Pagination": { "Returned": 1, "Limit": 20, "Offset": 0 }
}

uip ah users create​

Add an existing Automation Cloud user to Automation Hub. This imports a user who is already in the organization — it cannot invite a new one, and fails with an explicit instructional error if the address is unknown to Automation Cloud.

Options​
LongValeur (Value)RequisDescription
--email <email>E-mailouiUser email address.
--first-name <name> / --last-name <name>stringconditionallyRequired by the service on write (see below).
--job-title <title> / --department <name> / --business-unit <name> / --location <name>stringconditionallyRequired by the service on write.
--invite-status <status>IntegernonNumeric Automation Hub invite-status code. Default 2 on create.
--activeDrapeaunonMark the user active. Default on create. Conflicts with --inactive.
--inactiveDrapeaunonMark the user inactive. Conflicts with --active.
--role-id <id...>repeatablenonRole ids to assign (uip ah roles list for the ids).

Automation Hub requires nine fields to carry a value on every write (email, first-name, last-name, business-unit, department, location, job-title, invite-status, active/inactive) — on create, none has a stored fallback, so any omitted field fails client-side naming exactly which flags to pass.

Exemple​
uip ah users create --email jane@acme.com --first-name Jane --last-name Doe \
  --job-title Analyst --department Finance --business-unit EMEA --location Boston --role-id 3
uip ah users create --email jane@acme.com --first-name Jane --last-name Doe \
  --job-title Analyst --department Finance --business-unit EMEA --location Boston --role-id 3
Format des données (--sortie json)​
{ "Code": "AhUsersCreate", "Data": { "Email": "jane@acme.com", "Status": "Created" } }
{ "Code": "AhUsersCreate", "Data": { "Email": "jane@acme.com", "Status": "Created" } }

uip ah users update​

Update a user, found by --email. Automation Hub replaces the whole user record on write, so fields you don't pass are carried over from the stored record — except that the service still rejects the write if any of the nine required fields is empty on both the flag and the stored record.

Options​

Same flags as create, but only --email is required — the rest fill gaps from the existing record.

Exemple​
uip ah users update --email jane@acme.com --job-title 'Senior Analyst'
uip ah users update --email jane@acme.com --job-title 'Senior Analyst'
Format des données (--sortie json)​
{ "Code": "AhUsersUpdate", "Data": { "Email": "jane@acme.com", "Status": "Updated" } }
{ "Code": "AhUsersUpdate", "Data": { "Email": "jane@acme.com", "Status": "Updated" } }

Voir également​

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour