auth0/auth0-deploy-cli

Role's users not getting exported.

avsprashant opened this issue · 0 comments

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 tool 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

I can see https://github.com/auth0/auth0-deploy-cli/blob/master/examples/directory/roles/User.json that we could export role's users using CLI, but when i export i only get roles.

command used:
a0deploy export --config_file uk-dev/config/config.json --format directory --output_folder uk-dev/settings

config.json:
{ "AUTH0_DOMAIN": "xxxx", "AUTH0_CLIENT_ID": "xx", "AUTH0_KEYWORD_REPLACE_MAPPINGS": { "AUTH0_TENANT_NAME": "xxx" }, "AUTH0_ALLOW_DELETE": true, "EXCLUDED_PROPS": { "connections": [ "options.client_secret" ] } }

Expectation

We should see role's user json config as well along with role's permissions json

Reproduction

Ran this command
a0deploy export --config_file uk-dev/config/config.json --format directory --output_folder uk-dev/settings

Deploy CLI version

version 7.21.0

Node version

Node.js v22.2.0