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.
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.
Follow these steps to read the current SAML configuration and then change one setting.
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.
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
}
}
}'
001117211

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.