UiPath Documentation
uipath-cli
latest
false
UiPath CLI ユーザー ガイド
重要 :
このコンテンツは機械翻訳によって処理されています。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

uip login status

「uip login status」の構文とオプション - トークンを更新せずに現在の認証状態を報告します。

uip login status は、現在の認証ステート (ログインしているかどうか、選択されている組織とテナント、アクセス トークンの有効期限) を報告します。これは保存されたセッションの読み取り専用検査であり、このコマンドによってトークンは更新されません。

スクリプトで使用して後続の作業をゲートしたり、対話形式で後続の uip 呼び出しでターゲットとするテナントを確認したりします。

概要

uip login status
uip login status

このコマンドは、 グローバル オプション (--output--output-filter--log-level--log-file) を優先します。終了コードは 標準コントラクトに従います。

引数

設定はありません。

オプション

設定はありません。

注:

login status-f, --file <folder> を受け入れず、常に既定の資格情報の場所を読み取ります。既定以外の資格情報フォルダーを使用している場合は、ステータスを確認する前に、そのフォルダーで対応する uip login ... コマンドを再実行します。

# Human-readable (default table output)
uip login status

# JSON for scripts
uip login status --output json
# Human-readable (default table output)
uip login status

# JSON for scripts
uip login status --output json

データシェイプ(--output json)

{
  "Code": "LoginStatus",
  "Data": {
    "Status": "Logged in",
    "Identity": "jane.doe@example.com",
    "IdentityType": "User",
    "AuthFlow": "Interactive",
    "CredentialSource": "SavedLogin",
    "Organization": "my-org",
    "OrganizationId": "00000000-0000-0000-0000-000000000001",
    "Tenant": "DefaultTenant",
    "TenantId": "00000000-0000-0000-0000-000000000002",
    "Expiration Date": "2026-04-18T10:30:00Z"
  }
}
{
  "Code": "LoginStatus",
  "Data": {
    "Status": "Logged in",
    "Identity": "jane.doe@example.com",
    "IdentityType": "User",
    "AuthFlow": "Interactive",
    "CredentialSource": "SavedLogin",
    "Organization": "my-org",
    "OrganizationId": "00000000-0000-0000-0000-000000000001",
    "Tenant": "DefaultTenant",
    "TenantId": "00000000-0000-0000-0000-000000000002",
    "Expiration Date": "2026-04-18T10:30:00Z"
  }
}
  • Status — one of Logged in or Not logged in. When not logged in, most fields below are omitted and Organization/Tenant fall back to N/A.
  • Identity — who is acting: a user's email for interactive sessions, or "External application <clientId>" for a client-credentials/federated session. Omitted when it can't be determined.
  • IdentityType"User" or the External App's type. Present whenever Identity is.
  • AuthFlow — how the identity was proven: "Interactive", "ClientCredentials", or "FederatedCredentials". Present when known.
  • CredentialSource — where the session came from: "Robot", "EnvironmentVariables", "SavedLogin", or "N/A".
  • UserId / UserEmail / UserName / ClientId — additional identity detail, each present only when the underlying session actually carries that field.
  • Profile — the active named profile, when one is set and the session is file-based.
  • Organization — 組織名 (利用可能な場合)。その他の場合は組織 ID。
  • OrganizationId — present alongside Organization when the ID is known separately from the name.
  • Tenant — テナント名 (利用可能な場合)。それ以外の場合はテナント ID。テナントが選択されていない場合は N/A
  • TenantId — present alongside Tenant when the ID is known separately from the name.
  • BaseUrl — the resolved identity/API base URL, when known.
  • Expiration Date — アクセス トークンの有効期限の ISO-8601 タイムスタンプ。これはここでは更新されません。後でツールを呼び出すと、必要に応じてトークンが更新されます。
  • Hint (optional) — advisory text when the auth layer has something to surface — for example, an opaque PAT session reports "Token is opaque (not a JWT) - expiration and identity cannot be determined locally. Commands will fail with 401 once it is revoked or expired." instead of an expiration date.
  • Provider (deprecated) — a legacy, lower-fidelity version of CredentialSource ("Robot"/"Environment"/"File"/"N/A"), kept for one release for existing scripts. Read CredentialSource instead; Provider will be removed.

Exactly which fields appear depends on the auth flow — a PAT/environment-variable session, for example, has no Identity/AuthFlow (the token carries no claims to derive them from) but does carry CredentialSource and BaseUrl.

エラー動作

保存済みセッションが読み取り不能であるか、環境変数のフォールバック(UIPATH_CLI_*)が不完全な場合、CLI は ConfigErrorを出力します。[ Instructions ] フィールドをクリックすると、正しい根本原因にたどり着くことができます。

  • 環境変数が使用されているが、設定に誤りがある場合は、手順をお読みください "Check the UIPATH_CLI_* environment variables and re-run."
  • それ以外の場合、手順はディスク上の credentials フォルダーをポイントします。
  • uip login — テナントを認証して選択します。
  • uip logout — 保存済みセッションをクリアします。
  • 認証Status 反映する内容とトークンの更新方法。
  • セッションと資格情報 — フォルダーの場所とオーバーライド ルール。

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得