# Create Enterprise connection using management API

**URL:** <https://community.auth0.com/t/create-enterprise-connection-using-management-api/85308>\
**Category:** Get Help\
**Created:** [June 17, 2022, 2:47pm UTC](https://community.auth0.com/t/create-enterprise-connection-using-management-api/85308 "2022-06-17T14:47:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian.brown](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ian.brown/32/35949_2.png) [@ian.brown](https://community.auth0.com/u/ian.brown)\
**Post date:** [June 17, 2022, 2:47pm UTC](https://community.auth0.com/t/create-enterprise-connection-using-management-api/85308/1 "2022-06-17T14:47:54Z")

</div>

Does anyone have an example how to create an Samlp connection using the management API.  
Specifically - how to assign the PEM certificate, subject and related properties to the request. The documentation is vague and doesnt have a good example of what fields/datatypes are needed in the options section of the CreateConnection api call

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 17, 2022, 3:53pm UTC](https://community.auth0.com/t/create-enterprise-connection-using-management-api/85308/3 "2022-06-17T15:53:48Z")

</div>

Hi @ian.brown ,

Welcome to the Auth0 Community!

[This](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/8) topic has the sample scripts for creating the Samlp connection using the management API. Hope this helps!

---

<div class="post-metadata">

**Author:** ![ian.brown](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ian.brown/32/35949_2.png) [@ian.brown](https://community.auth0.com/u/ian.brown)\
**Post date:** [June 19, 2022, 1:12am UTC](https://community.auth0.com/t/create-enterprise-connection-using-management-api/85308/4 "2022-06-19T01:12:11Z")

</div>

Thanks that is exactly what I was looking for.  
After some testing I think that for a samlp connection I the minimum you need in the options is…

signingCert = Base64Encoded string of your PEM file (include begin/end certificate text)  
signInEndpoint = the URL for Idp Sign-in ([http://login.microsoftonline.com/](http://login.microsoftonline.com/)/login)  
domain\_alias = [array of string]. The domain name/names that this saml supports ([mydomain.com](http://mydomain.com))

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 21, 2022, 4:43pm UTC](https://community.auth0.com/t/create-enterprise-connection-using-management-api/85308/5 "2022-06-21T16:43:30Z")

</div>

Thank you, @ian.brown , for sharing the minimum options for setting up Samlp connection with us! 🙏 👍

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 25, 2022, 3:00pm UTC](https://community.auth0.com/t/create-enterprise-connection-using-management-api/85308/6 "2022-06-25T15:00:55Z")

</div>

This topic was automatically closed after 7 days. New replies are no longer allowed.
