Import/Export API Scopes between tenants

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.

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

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.

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