Delete Mapping Rule¶
GET /api/v1/sso_mapping/field/{fdmp_uuid}/delete
Overview¶
Delete an SSO attribute mapping in the current workspace.
Before Calling and Usage Steps¶
This group maps login attributes from a specific SSO provider to roles in the current workspace, which 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 (set_disable in this group), and the SSO configuration itself must also be enabled.
Attribute name matching is compared in lowercase, and values are not matched by regular expression or containment. String arrays are matched value by value; non-array values such as objects, numbers, and null are first converted to strings with json.dumps. Array elements are not uniformly converted to strings, so prefer stable string attributes and string arrays from the identity source. When multiple roles match, their union is used. After SSO mapping is enabled, the absence of rules or matches can prevent an account from accessing this workspace and can remove old associations during subsequent sign-ins or switches; this is not simply appending a default role. Writes trigger asynchronous refresh of workspace and member caches, which may affect subsequent access by existing SSO sessions, so it cannot be promised that changes take effect only at the next sign-in.
The legacy endpoint actually uses GET but has delete side effects; do not automatically prefetch, probe, or blindly retry it. Only the mapping is soft-deleted; roles/providers are not deleted, and isOpenSAMLMapping is not automatically disabled. If all matching rules for the provider are deleted, SSO accounts with mapping enabled may subsequently be unable to access. Before deletion, the audit resolves old roles; 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.
Route 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: Get 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/sso_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; idempotent success is not guaranteed if the mapping does not exist. |
{
"code": 200,
"content": true,
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
See Common Error Definitions for authentication, rate limiting, and common request errors.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 404 | ft.SamlMappingNoExists | No non-deleted mapping record for fdmp_uuid in this workspace | Specified Saml Mapping not found | Retrieve the fdmp_ UUID again from the mapping list in this workspace; it is not sso_ or lgmp_. |
| 404 | ft.NotFoundRole | Input role or old mapping target set has no role record visible in this workspace, including []; modification/deletion audits may also trigger this | Specified role not found or the role has been deleted | Verify the current input/old targets against the role list; do not treat an empty set as successful clearing; for historical bad rules, ask an administrator to fix them before processing. |
| 500 | ft.InternalServerError | Uncaught exception in saved JSON shape, database, or post-submission task dispatch | Internal error | The database may have committed while cache task dispatch failed; first read back the rules/SSO switch from the list before proceeding, and retain traceId. |