Skip to content

Delete SSO Configuration



GET /api/v1/sso/saml_delete/{sso_uuid}

Overview

Delete the provider configuration and its current workspace associations.

Before You Call and Usage Steps

This is a legacy-address compatibility endpoint and is still actually registered in the current source code; the historical "2026-05-31 retired" comment does not mean requests are currently prohibited. For new integrations, preferentially use Delete SSO Configuration. The legacy path uses the same controller/request fields/response and does not exclude OIDC because of the saml prefix.

The historical endpoint is actually GET but has deletion side effects; call it only when deletion is explicit, and do not automatically prefetch/probe for liveness or retry blindly. Back up the configuration first and confirm that current administrators still have other available login methods. The provider and associated role mappings are soft-deleted, and an attempt is made to clean up the email whitelist; the IdP-side client/account is not deleted, and this does not mean the remote configuration has been revoked.

Query accounts by the provider's identity digest, then remove them from the current workspace in batches: this involves shared cleanup of member relationships/roles/member groups, active personal Keys with createdWay=user, workspace session Tokens, member caches/alert policy caches, and channel subscriptions. The user account itself and its relationships in other workspaces are not globally deleted as a result, and disabling Key history records is not equivalent to clearing all of them in this operation. If an associated account is currently an Owner, shared cleanup will block removal.

Cross-configuration operations, batched member commits, and Key/cache/asynchronous tasks are not a single atomic operation; on failure, some configurations or member relationships may already be committed. Check the current state of configurations and members first, and do not rebuild directly. The historical empty idpMd5 branch skips member unbinding and cache tasks, but controller context exit can still commit deletions already performed; this cannot be understood as not executed. Legacy whitelist data and query compatibility issues do not guarantee that every residual entry has been cleared; after migration, recheck actual login findings. needNotify=false only suppresses emails; email dispatch failures are recorded and do not roll back the deletion.

Route Parameters

Parameter Name Type Required Description
sso_uuid string Y Current provider UUID; not the fdmp_ mapping, IdP digest, or client ID.
Example: sso_example
How to obtain or enter: Obtain a non-deleted configuration from content[].uuid in the SSO list of the current workspace.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Y Workspace OpenAPI authentication credential.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Query Request Parameters

Parameter Name Type Required Description
needNotify string Optional true/false string; default true. false only suppresses emails; deletion/member cleanup/cache/audit still proceed.
Allows null: False
Allowed values: ['true', 'false']
Example: false
How to obtain or enter: Whether to send a configuration deletion reminder to the workspace Owner/administrators.

Request Example

curl --get 'https://openapi.guance.com/api/v1/sso/saml_delete/sso_example' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode needNotify=false

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.name string Display name of the processed provider; an empty name may be an empty string.
content.declaration object or null Workspace common declaration attached to non-empty business objects; when not configured, it may be null or an empty object; empty objects are not added. The exact location of pagination is subject to the structure on this page.
{
  "code": 200,
  "content": {
    "name": "ExampleIdP",
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
406 ft.ParameterValidationFailed Request field is missing, or the field value violates the declared validation conditions Parameter parsing failed Verify the parameter location, field name, type, and value.
406 ft.NotFoundSAML The UUID does not belong to a non-deleted SSO configuration in the current workspace SSO configuration not found Retrieve the sso_ UUID again from the SSO List; do not use the fdmp_ mapping or idpMd5.
400 ft.InvalidActionForbiddenRemovalOwner An account associated with the identity digest includes the current workspace Owner, and member removal protection rejects the operation Invalid operation; the owner cannot be removed First verify Owner ownership and the actual login method, and have an authorized administrator make appropriate adjustments before deleting.
400 ft.AgentMemberCanNotDelete The associated namespace target contains an agent member that shared member cleanup prohibits deleting Members from the agent source are not allowed to be deleted Verify the account source and historical associations, and contact an administrator; some batches may already have been committed.
500 ft.InternalServerError Database/association cleanup or post-commit workspace/member cache task dispatch failed Internal error First use get/list to confirm status and associations; member cleanup may already have been committed in batches. Retain the traceId, and do not treat the error as meaning the configuration is completely unchanged.

Feedback

Is this page helpful?