# A0deploy - unable to skip deploying organizations by not including organizations entry in the tenant yaml

**URL:** <https://community.auth0.com/t/a0deploy-unable-to-skip-deploying-organizations-by-not-including-organizations-entry-in-the-tenant-yaml/77075>\
**Category:** Get Help\
**Tags:** auth0-deploy-cli, auth0-deploy\
**Created:** [January 26, 2022, 8:05pm UTC](https://community.auth0.com/t/a0deploy-unable-to-skip-deploying-organizations-by-not-including-organizations-entry-in-the-tenant-yaml/77075 "2022-01-26T20:05:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![billyf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/billyf/32/33224_2.png) [@billyf](https://community.auth0.com/u/billyf)\
**Post date:** [January 26, 2022, 8:05pm UTC](https://community.auth0.com/t/a0deploy-unable-to-skip-deploying-organizations-by-not-including-organizations-entry-in-the-tenant-yaml/77075/1 "2022-01-26T20:05:20Z")

</div>

### Stack

- **auth0-deploy-cli:** 7.3.2
- **Nodejs:** `14.16.1`

### Issue

The auth0 import will always read all the `organizations` in the tenant and generate a change plan, regardless of whether the `organizations` entry is in the tenant yaml or not.

For many other resources, the behavior is to skip the deployment of a particular resource if the corresponding entry is not in the tenant yaml.

### Objective

To be able to skip `organizations` when importing (deploying) to auth0.

We are an enterprise user and we manage the organizations in a tenant programmatically so we want to skip checking/deploying organizations when deploying to auth0.

I have filed this issue: [Unable to skip deploying organizations by not including organizations entry in the tenant yaml · Issue #387 · auth0/auth0-deploy-cli · GitHub](https://github.com/auth0/auth0-deploy-cli/issues/387)  
And opened a PR to attempt for a fix. Can anyone from the auth0 team take a look?

Thanks

---

<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:** [January 27, 2022, 1:27am UTC](https://community.auth0.com/t/a0deploy-unable-to-skip-deploying-organizations-by-not-including-organizations-entry-in-the-tenant-yaml/77075/3 "2022-01-27T01:27:39Z")

</div>

Hi @billyf,

Welcome to the Auth0 Community!

First, filing an issue on the Github repo for the Auth0-deploy-cli is generally the best way to get additional assistance on this.

In this case, I’d be more than happy to help.

I have just tested the Auth0-deploy-cli and excluded the `organizations` in my _tenant.yaml_ file and was able to skip the import for the organization settings. In other words, it did not override any of my existing organization settings on my tenant.

If this is an issue you have observed, could you please try either excluding the `organizations` or specifying `organizations: []` in your tenant.yaml file and see how that works?

For example:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/1/e19f42f4146cf486a028b4da9d093b3c310928d0.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![billyf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/billyf/32/33224_2.png) [@billyf](https://community.auth0.com/u/billyf)\
**Post date:** [January 27, 2022, 1:48am UTC](https://community.auth0.com/t/a0deploy-unable-to-skip-deploying-organizations-by-not-including-organizations-entry-in-the-tenant-yaml/77075/4 "2022-01-27T01:48:49Z")

</div>

Hi @rueben.tiow

Thanks for your reply. My objective is to skip the organization part at all, rather than having a0deploy to find out the difference but decide not to update because of the “no delete flag”.

Currently, both excluding the `organizations` or specifying `organizations: []` mean we want to have zero organizations in my tenant, meaning that if there are any organizations in the tenant, a0deploy will attempt to delete them if “no delete flag” is not specified.

What I would like to achieve is to be able to skip organizations at all, meaning that a0deploy shouldn’t even read the tenant’s organizations and shouldn’t try to find the difference.

Thanks,  
Ming

---

<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:** [January 27, 2022, 5:58pm UTC](https://community.auth0.com/t/a0deploy-unable-to-skip-deploying-organizations-by-not-including-organizations-entry-in-the-tenant-yaml/77075/5 "2022-01-27T17:58:49Z")

</div>

Hi @billyf,

Thank you for your response.

> [@billyf](#):
>
> Currently, both excluding the `organizations` or specifying `organizations: []` mean we want to have zero organizations in my tenant, meaning that if there are any organizations in the tenant, a0deploy will attempt to delete them if “no delete flag” is not specified.

With the way you are overriding your entire tenant with the Auth0 deploy CLI, I recommend exporting your tenant with the organizations first. Then copy and paste the organization code into the previous _tenant.yaml_ file, and import it that way. From doing so, you will override with the same existing organization settings.

The alternative is to set `"AUTH0_ALLOW_DELETE": false` in your _config.json_ file and specify `organizations:[]` which will skip the import and leave any existing organizations configurations on your tenant untouched.

Please let me know if you need further clarification or have any questions.

Thanks.

---

<div class="post-metadata">

**Author:** ![billyf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/billyf/32/33224_2.png) [@billyf](https://community.auth0.com/u/billyf)\
**Post date:** [January 27, 2022, 6:23pm UTC](https://community.auth0.com/t/a0deploy-unable-to-skip-deploying-organizations-by-not-including-organizations-entry-in-the-tenant-yaml/77075/6 "2022-01-27T18:23:59Z")

</div>

@rueben.tiow Thanks for your reply.

1. We don’t want to let a0deploy manage all the organizations since the creation of the organizations is dynamic and managed programmatically in our backend.
2. We also don’t want to let a0deploy to even read the organizations and generate a warning for each of them when setting `"AUTH0_ALLOW_DELETE": false` and providing an empty `organizations`. This is because the number of orgs can potentially be a lot and we don’t want to leave the org ids in our deployment log.

---

<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:** [February 11, 2022, 6:24pm UTC](https://community.auth0.com/t/a0deploy-unable-to-skip-deploying-organizations-by-not-including-organizations-entry-in-the-tenant-yaml/77075/7 "2022-02-11T18:24:07Z")

</div>

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