It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
3 years agoThe 'whoami' command does not respect the '--session' flag
The https://developer.1password.com/docs/cli/reference#global-flags for the cli includes --session token
as a global flag.
However, when I use a valid session token obtained from op signin --raw
, the whoami
command does not seem to notice:
$ op whoami --session xxx
[ERROR] 2023/02/22 08:54:26 no active session found for account xxx
The session token works fine for other cli commands.
Is the 'whoami' command expected to use the --session
token?
If so, this looks like a bug.
If not, please update the https://developer.1password.com/docs/cli/reference/commands/whoami page to indicate that the command can't use the gobal --session
flag.
1Password Version: 2.14.0
Extension Version: Not Provided
OS Version: Ubuntu 20.04.5 LTS
Browser:_ Not Provided
No Replies