Loading

View and Update Anypoint Platform SAML SSO Using the API

Publiseringsdato: Oct 22, 2026
Oppgave

GOAL

Use the Access Management API to view the SAML single sign-on (SSO) configuration of an Anypoint Platform organization and change a setting, such as service provider (SP)-initiated SSO, without using the Access Management UI.

The commands use the US control plane host anypoint.mulesoft.com. For the EU control plane, replace it with eu1.anypoint.mulesoft.com in every request.

Trinn
  • Check Which Endpoints Apply to Your Identity Provider

    The /provider/users endpoints in this article are the original, organization-level Access Management API endpoints. Per Managing External Identity Providers in Anypoint Platform, identity provider (IdP) configurations created before October 31, 2021 are backwards compatible with these endpoints. If that legacy IdP is deleted, the endpoints are no longer supported, even if the IdP is added again.

    For an IdP created on or after October 31, 2021, use the /identityProviders endpoints instead. To list the IdPs and read one, follow How to Get Identity Provider (SSO) Configuration Details Using API. To update one, use the identity provider update operation in the Access Management API reference.

    View and Update the Configuration of a Legacy Identity Provider

    Follow these steps to read the current SAML configuration and then change one setting.

    1. Get a bearer token by following How to generate your Authorization Bearer token for Anypoint Platform.
    2. Get your organization ID by following How to know my Organization ID (Org ID) on the MuleSoft Anypoint Platform.
    3. View the current configuration. Replace <ORG_ID> with the organization ID from step 2 and <ACCESS_TOKEN> with the token from step 1, then run this command:
      curl -v 'https://anypoint.mulesoft.com/accounts/api/organizations/<ORG_ID>/provider/users' \
        -H 'Authorization: Bearer <ACCESS_TOKEN>'

      The response looks similar to this example:

      {
        "allow_new_non_sso_users": true,
        "require_encrypted_saml_assertions": true,
        "saml": {
          "issuer": "http://www.vendor.com/xxxxxxxxxxxxxxxxxxxx",
          "public_key": [
            "-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----"
          ],
          "audience": "<your-org-domain>.anypoint.mulesoft.com",
          "claims_mapping": {
            "firstname_attribute": "FirstName",
            "lastname_attribute": "LastName",
            "email_attribute": "Email"
          },
          "name": "SAML 2.0",
          "sp_initiated_sso_enabled": true,
          "idp_initiated_sso_enabled": true
        },
        "service_provider": {
          "urls": {
            "sign_on": "https://dev-xxxxxx.vendor.com/app/xxxxxx/sso/saml",
            "sign_out": "https://dev-xxxxxx.vendor.com/app/xxxxxx/slo/saml"
          },
          "name": "SAML Service Provider"
        },
        "sp_initiated_sso_enabled": false,
        "type": {
          "description": "SAML 2.0",
          "name": "saml"
        }
      }

      Save this response before you change anything, so you can restore the original values if needed.

    4. Change the configuration with the PUT method. The request body wraps the settings in an identity_management object. For example, this command turns off SP-initiated SSO:
      curl -v 'https://anypoint.mulesoft.com/accounts/api/organizations/<ORG_ID>/provider/users' \
        -X 'PUT' \
        -H 'Accept: application/json, text/plain, */*' \
        -H 'Authorization: Bearer <ACCESS_TOKEN>' \
        -H 'Content-Type: application/json' \
        --data-binary '{
          "identity_management": {
              "saml": {
                  "sp_initiated_sso_enabled": false
              }
          }
      }'
    5. Run the command from step 3 again and confirm that the setting changed.

    REFERENCE

Knowledge-artikkelnummer

001117211

 
Laster
Salesforce Help | Article