jira auth whoami¶
- Usage:
jira auth whoami [flags]
Fetch /myself for the active profile and print the account identity Jira returns. Use it to confirm which Atlassian account a profile is using.
With --save, the resolved account ID is written back to the file-backed profile so --assignee me and TUI shortcuts can use Jira's canonical identifier. --save refuses environment-only profile overlays to avoid writing an account ID for the wrong tenant.
Configuration¶
--save¶
Persist the resolved account_id (and email if blank) to the active profile
Output fields¶
With --output json, the response envelope's data object carries these fields. Run jira agent schema for the full machine-readable schema.
| Field | Type | Description |
|---|---|---|
account_id |
string | |
account_type |
string | |
display_name |
string | |
email_address |
string | |
profile |
string | |
saved |
boolean | |
time_zone |
string |
Examples¶
jira auth whoami
jira auth whoami --save # (1)!
jira --profile prod auth whoami --output=json # (2)!
- Persist the resolved account ID to the active profile
- Check another profile without changing the active one