Delete SSO Mapping Rule¶
GET /api/v1/saml/mapping/field/{fdmp_uuid}/delete
Overview¶
Delete an SSO attribute mapping in the current workspace.
Before Calling and Usage Steps¶
This is a legacy endpoint kept for compatibility; it is still actually registered in the current source code. The historical "retired on 2026-05-31" comment does not mean requests are currently prohibited. For new integrations, prefer Delete Mapping Rule. The legacy path uses the same controller, request fields, and response; the saml prefix does not exclude OIDC.
This group maps login attributes from a specific SSO provider to roles in the current workspace. This differs from custom_login_mapping and system mappings for LDAP/OIDC in the Deployment Plan. Creating a rule does not automatically enable mapping: you must enable isOpenSAMLMapping for the corresponding SSO configuration (the set_disable endpoint in this group), and the SSO configuration itself must also be enabled.
Attribute name matching compares names in lowercase, and values are not matched as regular expressions or substrings. String arrays are matched value by value; non-array objects, numbers, null, and similar values are first converted to strings with json.dumps, while array elements are not uniformly converted to strings. Therefore, prefer stable string attributes and string arrays from the identity source. When multiple roles match, their union is used. Once mapping is enabled for SSO, having no rules or no matches can deny an account access to this workspace and remove old associations during subsequent logins or switches; it is not simply appending a default role. After writes, workspace and member caches are refreshed asynchronously, which may affect subsequent access by existing SSO sessions; it cannot be promised that changes take effect only on the next login.
The historical entry point is actually a GET request but has deletion side effects; do not automatically prefetch, probe, or blindly retry it. It only soft-deletes the mapping; it does not delete the role/provider, nor does it automatically disable isOpenSAMLMapping. If all matching rules for the provider are deleted, SSO accounts with mapping enabled may subsequently be unable to access. Before deletion, the audit parses the old role; even when there is no role record, NotFoundRole may still occur. After submission, caches are refreshed asynchronously; on error, first check the list to confirm whether the mapping has been deleted.
Path Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| fdmp_uuid | string | Y | A non-sso_ provider UUID or an lgmp_ custom mapping.Example: fdmp_exampleHow to obtain or enter: Take the fdmp_ UUID to delete from the mapping list in this 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 this operation permission from API Key Management in the target workspace. |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/saml/mapping/field/fdmp_example/delete' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | boolean | true on successful deletion; if it does not exist, idempotent success is not guaranteed. |
{
"code": 200,
"content": true,
"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 | Handling |
|---|---|---|---|---|
| 404 | ft.SamlMappingNoExists | fdmp_uuid has no non-deleted mapping record in this workspace |
The specified Saml Mapping was not found | Retrieve the fdmp_ UUID again from the mapping list in this workspace; it is not sso_ or lgmp_. |
| 404 | ft.NotFoundRole | The input role or the old mapping target set has no role record visible in this workspace, including []; modification/deletion audits may also trigger it |
The specified role was not found or the role has been deleted | Verify the current input/old target against the role list; do not treat an empty set as a successful clear; for historical bad rules, ask an administrator to repair them before handling. |
| 500 | ft.InternalServerError | An uncaught exception occurs in the saved JSON shape, the database, or task dispatch after submission | Internal error | The database may have committed while cache task dispatch failed; first read back the rule/SSO switch from the list before handling, and retain the traceId. |