# Import/Export API Scopes between tenants

**URL:** <https://community.auth0.com/t/import-export-api-scopes-between-tenants/79588>\
**Category:** Get Help\
**Tags:** auth0-deploy-cli, api, auth0\
**Created:** [March 9, 2022, 3:36pm UTC](https://community.auth0.com/t/import-export-api-scopes-between-tenants/79588 "2022-03-09T15:36:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumit.dey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sumit.dey/32/35588_2.png) [@sumit.dey](https://community.auth0.com/u/sumit.dey)\
**Post date:** [March 9, 2022, 3:36pm UTC](https://community.auth0.com/t/import-export-api-scopes-between-tenants/79588/1 "2022-03-09T15:36:52Z")

</div>

**Feature:** Import and Export API Scopes between tenants.

**Description:** I would love to have the option to bulk export and import API Scopes between tenants.

**Use-case:** Currently, its time consuming and error prone(due to manual effort) to transfer scopes from one tenant to another. If there was a way to clone API scopes between tenants, that would surely help a lot.

---

<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:** [March 9, 2022, 10:01pm UTC](https://community.auth0.com/t/import-export-api-scopes-between-tenants/79588/3 "2022-03-09T22:01:13Z")

</div>

Hi @sumit.dey,

Thanks for reaching out to the Auth0 Community!

I understand that you want to export and import your API scopes between tenants.

The best way to do so is using the [Auth0 Deploy CLI Tool](https://auth0.com/docs/deploy-monitor/deploy-cli-tool) to export/import these API settings.

After exporting your tenant settings, the _tenant.yaml_ file will have a reference to your `resourceServers` (APIs) which you can use to import to your other tenant. For example:

```auto
resourceServers:
  - name: Test API
    identifier: https://api.example.com
    allow_offline_access: false
    enforce_policies: true
    scopes:
      - value: read:name
        description: read name
      - value: read:users
        description: read users
      - value: send:emails
        description: send emails
    signing_alg: RS256
    skip_consent_for_verifiable_first_party_clients: true
    token_dialect: access_token_authz
    token_lifetime: 86400
    token_lifetime_for_web: 7200

```

With that said, I have gone ahead and changed your topic from a Feedback request to a General type.

Please let me know how this works for you.

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:** [March 24, 2022, 10:01pm UTC](https://community.auth0.com/t/import-export-api-scopes-between-tenants/79588/4 "2022-03-24T22:01:44Z")

</div>

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