auth0 / auth0-cli

Build, manage and test your Auth0 integrations from the command line
https://auth0.github.io/auth0-cli/
MIT License
243 stars 52 forks source link

auth0 organizations members list org_xxx error when outputting json #948

Closed anthonyangel closed 8 months ago

anthonyangel commented 8 months ago

Checklist

Description

auth0 organizations members list org_xxx outputs in table format by default, but according to the docs auth0 organizations members list org_xxx --json should output a json list of objects.

What the command with --json does is output a json list of objects of the correct length (ie it matches the number of users) but every user object is the last user in the list.

Expectation

Expecting to see a list of objects corresponding to the users in an organization

Reproduction

1.) Run auth0 organizations members list org_xxx, (with a valid org ID) - validate that you see a table output 2.) Run auth0 organizations members list org_xxx --json, (with a valid org ID) - validate that you see the json output with a single user repeated multiple times

Auth0 CLI version

auth0 version 1.3.0 2bd069cfc1ee0501ed039fc80b2e550447c8ef14

m3talsmith commented 8 months ago

@anthonyangel thanks for the report. We found the bug and it's merged in main. We'll get it out in the next release.