# Can't set tenant flag with auth0-deploy-cli

**URL:** <https://community.auth0.com/t/cant-set-tenant-flag-with-auth0-deploy-cli/74432>\
**Category:** Get Help\
**Created:** [December 8, 2021, 12:14am UTC](https://community.auth0.com/t/cant-set-tenant-flag-with-auth0-deploy-cli/74432 "2021-12-08T00:14:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcooley-Alto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jcooley-alto/32/33578_2.png) [@jcooley-Alto](https://community.auth0.com/u/jcooley-Alto)\
**Post date:** [December 8, 2021, 12:14am UTC](https://community.auth0.com/t/cant-set-tenant-flag-with-auth0-deploy-cli/74432/1 "2021-12-08T00:14:00Z")

</div>

I’m using auth0-deploy-cli to import a tenant configuration. the `tenant.yaml` includes `tenant.flags.include_email_in_reset_pwd_redirect: true`. When I attempt to import I encounter the error below:

```auto
2021-12-07T23:21:50.745Z - error: Problem running command import during stage processChanges when processing type tenant
2021-12-07T23:21:50.745Z - error: You are not allowed to set flag 'include_email_in_reset_pwd_redirect' for this tenant.

```

I confirmed that the client I’m using has the `update:tenant_settings` scope in its grant for the Auth0 Management API. What am I missing?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 8, 2021, 11:09pm UTC](https://community.auth0.com/t/cant-set-tenant-flag-with-auth0-deploy-cli/74432/3 "2021-12-08T23:09:23Z")

</div>

Hi @jcooley-Alto,

Welcome to the Auth0 Community!

I understand you could not set a tenant flag with the Auth0 Deploy CLI.

It appears that you are trying to set the `include_email_in_reset_pwd_redirect` flag in the tenant settings of your tenant.yaml file. Unfortunately, this flag is not available for newer tenants, which do not have this flag present. It may be the case where you have a legacy tenant where the exported tenant settings have this flag included. Now importing these settings to newer tenants will not accommodate deprecated flags.

The only flags available for the tenant object are the following:

```auto
"flags": {
  "change_pwd_flow_v1": false,
  "enable_apis_section": false,
  "disable_impersonation": false,
  "enable_client_connections": true,
  "enable_pipeline2": true,
  "allow_legacy_delegation_grant_types": false,
  "allow_legacy_ro_grant_types": false,
  "allow_legacy_tokeninfo_endpoint": false,
  "enable_legacy_profile": false,
  "enable_idtoken_api2": false,
  "enable_public_signup_user_exists_error": false,
  "enable_sso": false,
  "allow_changing_enable_sso": false,
  "disable_clickjack_protection_headers": false,
  "no_disclose_enterprise_connections": false,
  "enforce_client_authentication_on_passwordless_start": false,
  "enable_adfs_waad_email_verification": false,
  "revoke_refresh_token_grant": false,
  "dashboard_log_streams_next": false,
  "dashboard_insights_view": false
}

```

Please see the [documentation for the Management API Tenant Settings](https://auth0.com/docs/api/management/v2?#!/Tenants/tenant_settings_route) for more details on the tenant object. For further context, you may also find this [related GitHub issue](https://github.com/auth0/auth0-deploy-cli/issues/270) useful.

If you have any further questions, please feel free to reach out.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 23, 2021, 11:10pm UTC](https://community.auth0.com/t/cant-set-tenant-flag-with-auth0-deploy-cli/74432/4 "2021-12-23T23:10:17Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
