How do I retrieve email provider credentials from either UI or API?

Hi,

I’ve created a new tenant in a different geo-location to an original one, and want to copy all tenant info on to this new tenant, however I seem to have run into a problem where I can’t seem to access the email provider credentials to copy them across, either in the UI or via the API.

In the UI, under ‘branding’ → ‘email_provider’, they’re just not visible at all. (can’t see a way of allowing this, why wouldn’t I be able to see value I’d set? Also note that I’m a “team owner” for the account/tenants in question).

If I try the API as provided here:
https://auth0.com/docs/api/management/v2/emails/get-provider#scopes

… with my request as:
/api/v2/emails/provider?include_fields=true&fields=name,enabled,credentials,default_from_address

I just get an empty {} object for credentials (the other values seem to be correctly returned)

Am I missing something obvious? Surely I can read values I’ve set?

Thanks in advance for your help.

Noel

Hey there @noelt.dolan!

This is by design - Auth0 does not allow retrieval of email provider credentials once they are set, either through the UI or the Management API. This is to ensure that these sensitive credentials are not exposed, even to tenant administrators. You’ll need to manually re-enter the credentials in your new tenant

If it’s not possible, then it should be made in clear a) in the UI, that these values are ‘write only’ and b) that in the API, the misleading ‘credentials’ property won’t actually return anything! (why is it even there as an option!?)

C’est la vie. :upside_down_face:

1 Like

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