Skip to content

Delete SSO Configuration



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

Overview

Delete the provider configuration and its current workspace associations.

Before Calling and Usage Steps

The legacy endpoint is actually a GET but has deletion side effects. Call it only when deletion is explicit; do not automatically prefetch, perform liveness probing, or blindly retry. Back up the configuration first and confirm that the current administrator still has other available login entry points. Soft-delete the provider and associated role mappings, and attempt to clean up the email allowlist; this does not delete clients/accounts on the IdP side and 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 cache/Alert Policy cache, and channel subscriptions. User accounts themselves and their other workspace relationships are not globally deleted as a result, and disabled Key history records are not equivalent to all being cleared in this operation. If an associated account is currently an Owner, shared cleanup prevents removal.

Cross-configuration, batched member commits, and Key/cache/asynchronous tasks are not one atomic operation; on failure, some configurations or member relationships may already have been committed. Check the current state of the configuration and members first; do not rebuild directly. The legacy empty idpMd5 branch skips member unbinding and cache tasks, but deletions already made can still be committed when the controller context exits; this cannot be understood as not executed. Due to legacy allowlist data and query compatibility issues, it is not guaranteed that every residual entry has been cleared; after migration, recheck actual login findings. needNotify=false only suppresses emails; email dispatch failures are logged and do not roll back the deletion.

Path Parameters

Parameter Name Type Required Description
sso_uuid string Y Current provider UUID, not an 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 OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with permission for this operation from API Key Management in the target workspace.

Query 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.
Allow null: False
Allowed values: ['true', 'false']
Example: false
How to obtain or enter: Whether to send a configuration deletion reminder to the workspace Owner/administrator.

Request Example

curl --get 'https://openapi.guance.com/api/v1/sso/sso_example/delete' \
  -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 provider being processed; can be an empty string when the name is empty.
content.declaration object or null Workspace common declaration attached to a non-empty business object; can be null or an empty object when not configured; empty objects are not added. The exact pagination location is subject to the structure on this page.
{
  "code": 200,
  "content": {
    "name": "ExampleIdP",
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

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 A request field is missing, or the field value violates the declared validation conditions Parameter parsing failed Check the parameter location, field name, type, and value.
406 ft.NotFoundSAML UUID does not belong to a non-deleted SSO configuration in the current workspace SSO configuration not found Retrieve the sso_ UUID again from SSO List; do not use fdmp_ mappings or idpMd5.
400 ft.InvalidActionForbiddenRemovalOwner An account associated with the identity digest is an Owner of the current workspace, and member removal protection rejects the operation Invalid operation; cannot remove the owner First verify Owner ownership and the actual login method, then have an authorized administrator make appropriate adjustments before deletion.
400 ft.AgentMemberCanNotDelete Associated namespace targets include agent members that shared member cleanup prohibits deleting Members from agent source cannot be deleted Check the account source and historical associations, and contact the administrator; some batches may already have been committed.
500 ft.InternalServerError Database/association cleanup failed, or workspace/member cache task dispatch failed after commit Internal error First use get/list to confirm status and associations; member cleanup may already have been committed in batches. Retain the traceId; do not treat the error as the configuration being completely unchanged.

Feedback

Is this page helpful?