IAS: Change an Application’s Default Identity Provider with the API

SAP KBA 3762316 describes changing an IAS application’s default authenticating identity provider through the Application Configurations API. It also states that this option does not work for system applications.

Identify the application and provider

Obtain the application ID from its administration-console URL. Separately identify the intended identity provider ID; this is the value used in the replacement operation, not the application ID.

IAS application conditional authentication section with identifying value obscured
Application authentication settings reference. Source: SAP KBA 3762316.

Prepare the PATCH request

Use your authorized API client credentials with Basic authentication. Keep credentials out of request examples, screenshots and logs. The endpoint is:

PATCH https://<tenant>.accounts.ondemand.com/Applications/v1/<application-id>
Content-Type: application/json

Replace the example ID below with the intended identity provider ID:

{
  "operations": [
    {
      "op": "replace",
      "value": "<identity-provider-id>",
      "path": "/urn:sap:identity:application:schemas:extension:sci:1.0:Authentication/defaultAuthenticatingIdpId"
    }
  ]
}

Validate the change

Record the previous provider before submitting the request. After a successful update, verify the application’s displayed default provider and test the intended sign-in route while preserving an administrator access path.

SAP Note

SAP Note 3762316

You May Also Like

Leave a Reply?