Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Role's users not getting exported. #909

Open
6 tasks done
avsprashant opened this issue Jun 21, 2024 · 1 comment
Open
6 tasks done

Role's users not getting exported. #909

avsprashant opened this issue Jun 21, 2024 · 1 comment
Labels

Comments

@avsprashant
Copy link

avsprashant commented Jun 21, 2024

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

@marcossv9
Copy link

did you check the permissions of the M2M application that you have created to use with auth0 deploy cli ? Perhaps it does not have permissions to read roles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants