Skip to content

auth0 users show --json emits non-JSON text (tenancy info) #1270

@ad8-bdl

Description

@ad8-bdl

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this project and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

auth0 users show "$id" --json emits non-JSON text

Expectation

Output in JSON format should be in JSON format.

Specifically, it's spitting out the tenancy information. There should at least be a flag to suppress that.

This seems to be endemic to most (all?) commands that are tenancy-specific.

EDIT: I see this output is actually to stderr; so a simple workaround is to redirect that.

Reproduction

% auth0 users show 'auth0|xxx' --json

=== xxx.au.auth0.com user

{
    "user_id": "auth0|xxx",
    "connection": "xxx",
...
}

Auth0 CLI version

auth0 version 1.15.0 489abd0

Metadata

Metadata

Assignees

Labels

bugThis points to a verified bug in the code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions