Changing issuer in Auth0 SAML enterprise connection

Hey @dsteblyuk , the entityId of a SAML connection can be overridden by PATCHing the connection with the value you want. This attribute should go under the options object of the connection.

One work of caution: the options object is overwritten when being patched, instead of being merged. So you will want to get the existing object by doing a GET first and send the existing contents when doing the PATCH. Example:

curl -X PATCH 'https://TENANT_DOMAIN/api/v2/connections/CONNECTION_ID' \
--header 'Authorization: Bearer MGMT_API_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "options": {
    "entityId": "some_new_value",
    // rest of the options you received from GET
  }
}'
2 Likes