Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
4 years agoList all Guest Users
Hi Support,
I am trying to list:
1. all Guest users
2. All Active Users
3. All Users
4. All Guest Users and Vaults that they have access to
All Active Users:
op list users | jq -c '.[...
Former Member
4 years agoHey @PeterCharleston
Here are the commands that you can use to get the following results:
- get all Guest users
op list users | jq -c '.[] | select(.type == \"G\")'
get all Active users
op list users | jq -c '.[] | select(.state == \"A\")'
get all users
op list users | jq -c '.[]'
get all Guest users and the vaults they have access to
\> $users = (op list users | jq -r '.[] | select(.type == \"G\").email')
\> foreach ($u in $users) {op list vaults --user $u}
The trick is to escape the quotation marks in the command. For example, "G" becomes \"G\". This discrepancy is present in Powershell.