Skip to content

Get SSO Mapping List



GET /api/v1/saml/mapping/field/list

Overview

Read SSO role mapping rules by provider and keyword with pagination.

Before Calling and Usage Steps

This is a legacy URL compatibility endpoint and is still actually registered in the current source code; the historical "retired on 2026-05-31" comment does not mean that requests are currently prohibited. For new integrations, prefer Get Mapping Rule List. The legacy path uses the same controller/request fields/response, and OIDC is not excluded because of the saml prefix.

This group maps the login attributes of 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 need to 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; values are not regex/contains matching. String arrays are matched value by value; non-array objects, numbers, null, etc. are first converted to strings with json.dumps, while array elements are not uniformly converted to strings, so prefer string attributes and string arrays that are stable in the identity source. When multiple roles are matched, their union is used. After SSO mapping is enabled, the absence of rules or matches can deny the account access to this Workspace and remove old associations during subsequent logins/switches; it is not simply appending a default role. After writing, 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.

Only non-deleted rules in the current Workspace are included; by default, they are sorted by updateAt in descending order, and rules from different providers can be listed together. search performs an OR across source field, source value, and role name, and is ANDed with the ssoUUID filter. ssoInfo={} indicates that no non-deleted provider is found in this Workspace, but this endpoint does not automatically delete/repair the mapping. The response is configuration, not the roles currently in effect for a given account.

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 fill in: Obtain an OpenAPI Key with this operation permission from the API Key management of the target Workspace.

Query Request Parameters

Parameter Name Type Required Description
ssoUUID string Optional, ≤48 characters; after trim, an empty value is not used for filtering, and a non-empty value is used for exact filtering; provider existence is not verified.
Allows null: False
Maximum length: 48
Example: sso_example
How to obtain or fill in: Obtain the provider UUID from the SSO list in this Workspace.
search string Optional, fuzzy match after trim; SQL wildcard characters may affect LIKE.
Allows null: False
Example: engineering
How to obtain or fill in: Use a keyword from an attribute name/value or role display name.
pageIndex integer Optional, default 1, >=1.
Allows null: False
$minValue: 1
Example: 1
How to obtain or fill in: The first page is 1; use pageInfo to page through.
pageSize integer Optional, default 10.
Allows null: False
$minValue: 1
$maxValue: 100
Example: 10
How to obtain or fill in: Select 1..100 records as needed.

Request Example

curl --get 'https://openapi.guance.com/api/v1/saml/mapping/field/list' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode ssoUUID=sso_example \
  --data-urlencode pageIndex=1 \
  --data-urlencode pageSize=10

Response

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

Field Type Description
content.data array<object> Array of mappings on this page.
content.data[].id integer Database record ID.
content.data[].uuid string fdmp_ mapping UUID, used for modification/deletion.
content.data[].workspaceUUID string Current Workspace.
content.data[].ssoUUID string Stored provider UUID; it is not guaranteed to still exist or belong to the current Workspace.
content.data[].sourceField string Attribute field name.
content.data[].sourceValue string Field value to match.
content.data[].targetValues array<string> Array of stored role identifiers; may contain historical values that are no longer valid.
content.data[].targetValues[] string Single role identifier.
content.data[].roleInfos array<object> Summary of roles visible in this Workspace with status=0; invalid roles are omitted.
content.data[].roleInfos[].uuid string Role UUID.
content.data[].roleInfos[].name string Role name.
content.data[].ssoInfo object Summary of non-deleted providers in this Workspace; {} when there is no valid match.
content.data[].ssoInfo.uuid string Provider UUID; may be omitted.
content.data[].ssoInfo.idpName string Provider name; may be omitted.
content.data[].status integer Non-deleted record status; usually 0, historical records may be 2.
content.data[].creator string Creator identity.
content.data[].updator string Updater identity.
content.data[].createAt integer Creation time in Unix seconds.
content.data[].updateAt integer Update time in Unix seconds; may be -1 if not updated.
content.data[].deleteAt integer Deletion time in Unix seconds; -1 if not deleted.
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; an empty object is not added. The exact pagination position is based on the structure on this page.
pageInfo.pageIndex integer Current page.
pageInfo.pageSize integer Page size.
pageInfo.count integer Number of records on this page.
pageInfo.totalCount integer Total number of matching records.
{
  "code": 200,
  "content": {
    "data": [
      {
        "id": 1,
        "uuid": "fdmp_example",
        "workspaceUUID": "wksp_example",
        "ssoUUID": "sso_example",
        "sourceField": "groups",
        "sourceValue": "engineering",
        "targetValues": [
          "general"
        ],
        "roleInfos": [
          {
            "uuid": "general",
            "name": "标准成员"
          }
        ],
        "ssoInfo": {
          "uuid": "sso_example",
          "idpName": "ExampleIdP"
        },
        "status": 0,
        "creator": "wsak_example",
        "updator": "wsak_example",
        "createAt": 1785427200,
        "updateAt": 1785427200,
        "deleteAt": -1
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE",
  "pageInfo": {
    "pageIndex": 1,
    "pageSize": 10,
    "count": 1,
    "totalCount": 1
  }
}

Error Responses

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

HTTP Status errorCode Trigger Condition Message or Response Description Handling
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.
500 ft.InternalServerError Exception formatting the historical JSON shape, database, or role/provider profile being read Internal error Narrow down to a specific provider/rule, check the shape of historical targetValues, and retain the traceId if the failure persists.

Feedback

Is this page helpful?