# What are the supported properties when creating a SAML connection via the management API?

**URL:** <https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016>\
**Category:** Get Help\
**Tags:** saml\
**Created:** [February 28, 2022, 2:14pm UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016 "2022-02-28T14:14:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jivinivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jivinivan/32/24709_2.png) [@jivinivan](https://community.auth0.com/u/jivinivan)\
**Post date:** [February 28, 2022, 2:14pm UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/1 "2022-02-28T14:14:47Z")

</div>

Hello! I would like to create SAML connections via the management API however I’m unable to find the supported properties for this connection.

They are not listed here: [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/#!/Connections/post_connections)

A similar question was asked here: [How to create a new SAML connection using the management API? - #3 by lomesh.patel](https://community.auth0.com/t/how-to-create-a-new-saml-connection-using-the-management-api/7327/3)

Is there somewhere these properties are documented?

---

<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:** [March 1, 2022, 12:38am UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/4 "2022-03-01T00:38:59Z")

</div>

Hi @jivinivan ,

Thank you for reaching Auth0 Community!

To created a SAML connections via the management API, please click [here](https://auth0.com/docs/api/management/v2#!/Connections/post_connections), and add the body scripts like below:

```auto
{
“name”: “xxx”,
“strategy”: “samlp”,
“options”: {
“metadataURL”: “yyy”
}
}

```

Hope this helps! Please feel free to let us know if any further queries.

---

<div class="post-metadata">

**Author:** ![jivinivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jivinivan/32/24709_2.png) [@jivinivan](https://community.auth0.com/u/jivinivan)\
**Post date:** [March 1, 2022, 1:40am UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/5 "2022-03-01T01:40:41Z")

</div>

Thank you Lihua! This is helpful. Is there somewhere I can find all supported options? I’m looking for the field names for all options on the following page (including certificate upload):

 ![saml](https://global.discourse-cdn.com/auth0/original/3X/a/b/ab9b80c660726ed265dae1c90cee956c1ee4b93a.jpeg)

---

<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:** [March 2, 2022, 1:18am UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/7 "2022-03-02T01:18:22Z")

</div>

You are welcome 🙂

Does [this page](https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider) has the info you are looking for?

---

<div class="post-metadata">

**Author:** ![jivinivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jivinivan/32/24709_2.png) [@jivinivan](https://community.auth0.com/u/jivinivan)\
**Post date:** [March 2, 2022, 7:31pm UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/8 "2022-03-02T19:31:25Z")

</div>

Unfortunately it does not. That doesn’t seem to list the `options` field names to be used in Management API. How would you recommend I find those out?

I’m happy to file a support request if that’s the best next step!

---

<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:** [March 2, 2022, 9:23pm UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/9 "2022-03-02T21:23:33Z")

</div>

Here is the list of options for creating SAML connection in the Management API. I was able to create the connection successfully.

```auto
{
  "options": {
    "cert": "-----BEGIN CERTIFICATE——your-certificate——END CERTIFICATE-----\n",
    "debug": true,
    "expires": "2031-09-09T19:24:22.000Z",
    "subject": {
      "commonName": "dev-39112510",
      "countryName": "US",
      "emailAddress": "info@okta.com",
      "localityName": "San Francisco",
      "organizationName": "Okta",
      "stateOrProvinceName": "California",
      "organizationalUnitName": "SSOProvider"
    },
    "metadataUrl": “you-metadata-url”,
    "signingCert": "",
    "thumbprints": [
      "662cca7f382a143c71630ebb309ab0adea4eba16"
    ],
    "bindingMethod": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect",
    "disableSignout": false,
    "signInEndpoint": "you-signin-endpoint”,
    "digestAlgorithm": "sha1",
    "protocolBinding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect",
    "signOutEndpoint": null,
    "signSAMLRequest": false,
    "user_id_attribute": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier”,
    "signatureAlgorithm": "rsa-sha256"
  },
  "strategy": "samlp",
  "name": "okta-test2",
  "is_domain_connection": false,
  "show_as_button": false,
  "enabled_clients": []
}

```

Please let us know how it goes. Thanks!

---

<div class="post-metadata">

**Author:** ![jivinivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jivinivan/32/24709_2.png) [@jivinivan](https://community.auth0.com/u/jivinivan)\
**Post date:** [March 2, 2022, 9:34pm UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/10 "2022-03-02T21:34:49Z")

</div>

This is exactly what I was looking for, thank you!

---

<div class="post-metadata">

**Author:** ![jivinivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jivinivan/32/24709_2.png) [@jivinivan](https://community.auth0.com/u/jivinivan)\
**Post date:** [March 2, 2022, 9:35pm UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/11 "2022-03-02T21:35:36Z")

</div>

If you have a moment it might be helpful to update this related post as well [How to create a new SAML connection using the management API? - #4](https://community.auth0.com/t/how-to-create-a-new-saml-connection-using-the-management-api/7327/4)

---

<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:** [March 2, 2022, 10:43pm UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/12 "2022-03-02T22:43:00Z")

</div>

Thank you @jivinivan for the confirmation. I have updated [this article](https://community.auth0.com/t/how-to-create-a-new-saml-connection-using-the-management-api/7327/5) with the solution.

Have a great rest of your day!

---

<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:** [March 17, 2022, 10:43pm UTC](https://community.auth0.com/t/what-are-the-supported-properties-when-creating-a-saml-connection-via-the-management-api/79016/13 "2022-03-17T22:43:22Z")

</div>

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