Show examples in:
    Update SSO Settings

    Parameters

    idp_saml_metadata_url  null, string  Optional

    URL of Identity Provider SAML Metadata endpoint

    default_role  { type: "role", id: role.id }  Required

    The default role assigned to SSO users that do not belong to any SSO group

    Returns

    Returns a sso_settings resource object.

    Examples

    Example code:
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const ssoSettings = await client.ssoSettings.update({
    idp_saml_metadata_url: 'https://my-org.oktapreview.com/app/XXXX/sso/saml/metadata',
    default_role: {
    type: 'role',
    id: '34'
    }
    });
    console.log(ssoSettings);
    }
    run();
    Returned output:
    {
    id: '312',
    idp_saml_metadata_url: 'https://my-org.oktapreview.com/app/XXXX/sso/saml/metadata',
    scim_base_url: 'https://sso.datocms.com/scim',
    saml_acs_url: 'https://sso.datocms.com/XXX/saml/consume',
    sp_saml_metadata_url: 'https://sso.datocms.com/XXX/saml/metadata',
    sp_saml_base_url: 'https://sso.datocms.com/XXX/saml',
    saml_token: 'a2a24ae5fbb2d955b1b4fa73f2dd58',
    scim_api_token: 'as3dasjh1234hj1',
    default_role: null
    }