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 agoHi Justin
Which version of CLI and jq are you using?
the command produce arrays in Powershell 5.1
$opsUsersState = op list users | jq -c '.[] | select(.state)'
PS C:\Users\PeterCharleston> $opsUsersState.GetType()
IsPublic IsSerial Name BaseType
True True Object[] System.Array
$opsUserList = op list users | jq -c '.[]'
PS C:\Users\PeterCharleston> $opsUSerList.GetType()
IsPublic IsSerial Name BaseType
True True Object[] System.Array
I can get specific values like email:
$listOfEmails = $(op list users | jq -r '.[] | .email')
PS C:\Users\PeterCharleston> $listOfEmails.GetType()
IsPublic IsSerial Name BaseType
True True Object[] System.Array