# How to add Identity provider domains in saml connection using terraform

**URL:** <https://community.auth0.com/t/how-to-add-identity-provider-domains-in-saml-connection-using-terraform/109783>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [June 22, 2023, 3:58pm UTC](https://community.auth0.com/t/how-to-add-identity-provider-domains-in-saml-connection-using-terraform/109783 "2023-06-22T15:58:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayank\_jadhav](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mayank\_jadhav](https://community.auth0.com/u/mayank_jadhav)\
**Post date:** [June 22, 2023, 3:58pm UTC](https://community.auth0.com/t/how-to-add-identity-provider-domains-in-saml-connection-using-terraform/109783/1 "2023-06-22T15:58:18Z")

</div>

Hi Guys,

I am creating an saml connection for auth0 application using terraform. When I am doing configurations I don’t see any terraform argument to add “Identity Provider Domains” which is in “Login Experience” inside saml connection.

Location :- Auth0 console → Authentication → Enterprise → Login Experience

How can I add these values using terraform ?

 ![Screenshot (39)](https://global.discourse-cdn.com/auth0/original/3X/3/b/3b39ab6dd6957a183c11cb25a0a2acfa27430866.png)

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 30, 2023, 1:35pm UTC](https://community.auth0.com/t/how-to-add-identity-provider-domains-in-saml-connection-using-terraform/109783/3 "2023-06-30T13:35:29Z")

</div>

Hi @mayank_jadhav

Welcome back to the Auth0 Community!

Based on your message, you want to set the Identity providers domain using Terraform with SAML connection type. To achieve that in the terraform connection configuration, you must set ` domain_aliases = ["example.com"]` in the options dictionary. You can read the full description [here](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/connection#domain_aliases) in the Terraform settings

I hope it will help you.

Best regards.

---

<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:** [July 14, 2023, 1:35pm UTC](https://community.auth0.com/t/how-to-add-identity-provider-domains-in-saml-connection-using-terraform/109783/4 "2023-07-14T13:35:35Z")

</div>

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