UiPath Documentation
uipath-cli
latest
false
UiPath CLI user guide

uip insights users

Syntax and options for `uip insights users`, which reads the Insights users of the active tenant and their Insights role names.

uip insights users reads the tenant users visible to the current caller, along with their Insights role names. This is a read-only surface — there is no create, update, or delete verb.

Important:

Reading Insights users requires the Insights Management View permission in the active tenant. A session with no user identity (for example, one signed in with client credentials) cannot read this data at all and gets a 403.

Synopsis​

uip insights users list [--include-email] [-l <n>] [-o <n>]
uip insights users get <user-id> [--include-email]
uip insights users list [--include-email] [-l <n>] [-o <n>]
uip insights users get <user-id> [--include-email]

Both verbs honor the global options and the standard exit codes. Neither accepts -t, --tenant — they use the tenant selected during uip login.

uip insights users list​

List tenant users visible to the current caller, with their Insights role names.

Options​

FlagDescription
--include-emailInclude email addresses and the nested role IDs in the output. Off by default — the default view omits both.
-l, --limit <number>Maximum rows to return. Defaults to 50.
-o, --offset <number>Rows to skip before returning results.

Pagination is client-side: the backend returns the full unpaginated list, and the CLI slices it after fetching.

Examples​

uip insights users list

uip insights users list --include-email --limit 100
uip insights users list

uip insights users list --include-email --limit 100

Data shape — default view​

{
  "Code": "InsightsUsersList",
  "Data": [
    {
      "id": "b2c3d4e5-0000-0000-0000-000000000001",
      "name": "Jane Doe",
      "roles": [{ "name": "Viewer" }]
    }
  ],
  "Pagination": { "Returned": 1, "Limit": 50, "Offset": 0, "Total": 1, "HasMore": false },
  "Instructions": "Roles shown are the user's Insights roles in the active tenant, by name; 'uip insights roles list' maps a role name to its role GUID and back. A user's row is kept even when directory enrichment fails. This view omits email and the nested role IDs. Pass --include-email to include them."
}
{
  "Code": "InsightsUsersList",
  "Data": [
    {
      "id": "b2c3d4e5-0000-0000-0000-000000000001",
      "name": "Jane Doe",
      "roles": [{ "name": "Viewer" }]
    }
  ],
  "Pagination": { "Returned": 1, "Limit": 50, "Offset": 0, "Total": 1, "HasMore": false },
  "Instructions": "Roles shown are the user's Insights roles in the active tenant, by name; 'uip insights roles list' maps a role name to its role GUID and back. A user's row is kept even when directory enrichment fails. This view omits email and the nested role IDs. Pass --include-email to include them."
}

Data shape — with --include-email​

{
  "Code": "InsightsUsersList",
  "Data": [
    {
      "id": "b2c3d4e5-0000-0000-0000-000000000001",
      "name": "Jane Doe",
      "roles": [{ "id": "c1d2e3f4-0000-0000-0000-000000000001", "name": "Viewer" }],
      "email": "[email protected]"
    }
  ],
  "Pagination": { "Returned": 1, "Limit": 50, "Offset": 0, "Total": 1, "HasMore": false }
}
{
  "Code": "InsightsUsersList",
  "Data": [
    {
      "id": "b2c3d4e5-0000-0000-0000-000000000001",
      "name": "Jane Doe",
      "roles": [{ "id": "c1d2e3f4-0000-0000-0000-000000000001", "name": "Viewer" }],
      "email": "[email protected]"
    }
  ],
  "Pagination": { "Returned": 1, "Limit": 50, "Offset": 0, "Total": 1, "HasMore": false }
}

With --include-email, Instructions carries the same note without its last two sentences. A user's row is kept in the list even when directory enrichment (resolving display data) fails for that user — an incomplete row is not dropped.

uip insights users get​

Get one Insights user by its GUID.

Arguments​

NameRequiredPurpose
<user-id>yesUser GUID. A value that isn't a GUID fails client-side with Run 'uip insights users list' to find a user ID. before any network call.

Options​

FlagDescription
--include-emailInclude the email address and the nested role IDs in the output. Off by default.

Example​

uip insights users get b2c3d4e5-0000-0000-0000-000000000001
uip insights users get b2c3d4e5-0000-0000-0000-000000000001

Data shape (--output json)​

{
  "Code": "InsightsUserGet",
  "Data": { "id": "b2c3d4e5-0000-0000-0000-000000000001", "name": "Jane Doe", "roles": [{ "name": "Viewer" }] }
}
{
  "Code": "InsightsUserGet",
  "Data": { "id": "b2c3d4e5-0000-0000-0000-000000000001", "name": "Jane Doe", "roles": [{ "name": "Viewer" }] }
}

With --include-email, the same shape gains email and the nested roles[].id, same as the list view. As in the list, the user's name can be blank or out of date when directory enrichment fails.

A 404 fails with User <id> was not found in the active Insights tenant, or is not visible there. The same user can exist in another tenant. If every Insights RBAC command returns 404, the tenant may not have the Insights Portal service provisioned.

See also​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated