UiPath Documentation
uipath-cli
latest
false
Guia do usuário da UiPath CLI
Importante :
Este conteúdo foi traduzido com auxílio de tradução automática. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

uip user

Syntax and options for `uip user`, which shows identity information about the currently logged-in session.

uip user shows who the current session is authenticated as — a whoami for uip. It takes no arguments and no options beyond the global ones.

Resumo

uip user
uip user

uip user honors the global options (--output, --output-filter, --log-level, --log-file). Exit codes follow the standard contract.

Argumentos

Nenhum.

Opções

Nenhuma além das opções globais.

Exemplo

uip user
uip user

Formato dos dados (--output json)

{
  "Code": "User",
  "Data": {
    "UserId": "a1b2c3d4-0000-0000-0000-000000000001",
    "Name": "Jane Doe",
    "Username": "jane.doe@my-org",
    "Email": "jane.doe@my-org.com",
    "FirstName": "Jane",
    "LastName": "Doe"
  }
}
{
  "Code": "User",
  "Data": {
    "UserId": "a1b2c3d4-0000-0000-0000-000000000001",
    "Name": "Jane Doe",
    "Username": "jane.doe@my-org",
    "Email": "jane.doe@my-org.com",
    "FirstName": "Jane",
    "LastName": "Doe"
  }
}

The fields are parsed straight out of the session's access token claims. When the active session is an application (client-credentials) session rather than a human user, there is no person behind it — UserId/Name/Username/Email/FirstName/LastName come back as empty strings, but the response also includes IdentityType (identifying it as an application identity) and ClientId, so a script can distinguish "no user data" from "not actually a user."

Failure behavior

  • Not logged in: AuthenticationError, exit code 2, with Instructions pointing to uip login.
  • Session present but the login-status check itself fails (for example, a corrupted credentials file): ConfigError, exit code 1.
  • uip login — start the session uip user reports on.
  • uip login status — session-level detail (org, tenant, expiration) rather than user identity.
  • Authentication — the credential model behind the session.

Veja também

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades