Management API to create a tenant and to install and configure an Extension

I am one of the contributors to the Terraform Provider for Auth0 that allows me to programmatically configure my tenant using the management APIs. I’m developing a solution that could involve creating many Auth0 tenants and it’s absolutely necessary every step can be automated (there is much more in this tenant setup than just Auth0.

  1. There is no API to actually create an Auth0 tenant. There is no method currently to programmatically create a new tenant. If i could do that, it would simplify my setup, however that small task is not insurmountable.

  2. I cannot install an Extension programmatically. The only way to install an Extension is to use the Management UI and click on the Extensions tab and click on it. It looks like Webtask used to have this capability but all access to the APIs is gone and somehow mediated by the Auth0 Management Console UI.

I only want to install the Delegated Admin Extension and specify two of its configuration parameters. Once it’s installed I’m able to configure it’s scripts programmatically. It’s the one link missing in my piece of automation armor.

Hi @yinzara ,

Thanks for contributing to the Auth0 Terraform Provider project!

At this time, there is no support in the Auth0 Management API for automating tenants or extensions, so there’s nothing for Terraform or an Auth0 management SDK to latch on to. We have no plans to add such support within the next three months.

I understand that’s probably not the answer you’re looking to hear, but I want to make sure you’re able to adjust your plans accordingly.

For Auth0 enterprise customers, some options can be enabled on a per-account and per-tenant basis for automating the creation of tenants and installation of extensions. These options will require additional scripting outside of Terraform. Contact your technical account manager for details.

One of the best ways to influence Auth0’s product roadmap is by leaving feedback about your use cases, and how we could it easier for you to succeed with Auth0. If you’re so inclined, I’d love to hear more about what you’re trying to do. Our feedback form is at https://auth0.com/feedback, we read all of it.

1 Like

Thanks for engaging in the thread Chip!